HighDots Forums  

CSS 411 ASAP (clever huh?)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS 411 ASAP (clever huh?) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexander Ross
 
Posts: n/a

Default CSS 411 ASAP (clever huh?) - 08-04-2003 , 09:30 PM






In reference to the following html:

<span style="margin-left:40px"> Blah blah blah blah </span>

If the text within the span is long enough, then the text (rightfully) goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!? How can I fix this? It's important that I use tables as
speringly as possible for my current project, so that is currently my last
resort. Ideas?

--
Alexander Ross
alexross (AT) bleen (DOT) net



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS 411 ASAP (clever huh?) - 08-04-2003 , 10:17 PM






Alexander Ross wrote:

Quote:
In reference to the following html:

span style="margin-left:40px"> Blah blah blah blah </span

If the text within the span is long enough, then the text (rightfully) goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!?
Because span is an inline-level element.

9.4.2 Inline formatting context
http://www.w3.org/TR/REC-CSS2/visure...ine-formatting

"The rectangular area that contains the boxes that form a line is called
a line box. [...] Since an inline box may not exceed the width of a line
box, long inline boxes are split into several boxes and these boxes
distributed across several line boxes. When an inline box is split,
margins, borders, and padding have no visual effect where the split
occurs. Formatting of margins, borders, and padding may not be fully
defined if the split occurs within a bidirectional embedding."

Quote:
How can I fix this?
IMHO the only way is to use a block-level element like p or div, depends
on what you're trying to achieve.

Micha


Reply With Quote
  #3  
Old   
Joe Nagy
 
Posts: n/a

Default Re: CSS 411 ASAP (clever huh?) - 08-04-2003 , 10:34 PM



Alexander,

Use div instead of span.

Joe


"Alexander Ross" <alexross (AT) bleen (DOT) net> wrote

Quote:
In reference to the following html:

span style="margin-left:40px"> Blah blah blah blah </span

If the text within the span is long enough, then the text (rightfully)
goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!? How can I fix this? It's important that I use tables
as
speringly as possible for my current project, so that is currently my last
resort. Ideas?

--
Alexander Ross
alexross (AT) bleen (DOT) net





Reply With Quote
  #4  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: CSS 411 ASAP (clever huh?) - 08-04-2003 , 11:14 PM



Micha is spot on. Perhaps if you could expound on how this all fits into
your layout and precisely what you want to accomplish, we can help you
figure out a good solution.

--
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Extensions - DesignPacks - Tutorials - Books
---------------------------------------------------------------------
The PVII Newsgroup | news://forums.projectseven.com/pviiwebdev
The CSS Newsgroup | news://forums.projectseven.com/css
---------------------------------------------------------------------



"Alexander Ross" <alexross (AT) bleen (DOT) net> wrote

Quote:
In reference to the following html:

span style="margin-left:40px"> Blah blah blah blah </span

If the text within the span is long enough, then the text (rightfully)
goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!? How can I fix this? It's important that I use tables
as
speringly as possible for my current project, so that is currently my last
resort. Ideas?



Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: CSS 411 ASAP (clever huh?) - 08-05-2003 , 11:01 AM



On Mon, 4 Aug 2003 21:30:56 -0400, "Alexander Ross"
<alexross (AT) bleen (DOT) net> wrote:

Quote:
span style="margin-left:40px"> Blah blah blah blah </span

If the text within the span is long enough, then the text (rightfully) goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!? How can I fix this? It's important that I use tables as
speringly as possible for my current project, so that is currently my last
resort. Ideas?
<p style="margin-left:40px;text-indent:-40px">


Gary


Reply With Quote
  #6  
Old   
Alexander Ross
 
Posts: n/a

Default Re: CSS 411 ASAP (clever huh?) - 08-05-2003 , 07:31 PM



This is superfantastifull!! Exactly what I was looking for.

--
Alexander Ross
alexross (AT) bleen (DOT) net


"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
On Mon, 4 Aug 2003 21:30:56 -0400, "Alexander Ross"
alexross (AT) bleen (DOT) net> wrote:

span style="margin-left:40px"> Blah blah blah blah </span

If the text within the span is long enough, then the text (rightfully)
goes
to a second line. However, the second line is not indented (a la
margin-left). Why?!? How can I fix this? It's important that I use tables
as
speringly as possible for my current project, so that is currently my
last
resort. Ideas?

p style="margin-left:40px;text-indent:-40px"


Gary



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.