[thelist] css2: left margin blues

Joseph A Borg jacborg at mac.com
Mon Jun 17 02:30:00 CDT 2002


I am trying to align a second span block x points from the left margin
of it's parent:
> <div>
> 	<span class="fld_name">field name</span><span
> class="fld_content">field content</span>
> 	<span class="fld_name">field name #2</span><span
> class"fld_content">field content#2</span>
> <div>

> where [fld_name] is left aligned in the div while [fld_content] is
> shifted 100px to the right...

afaik margins are calculated from the parent's border, instead the
second span block is shifting according the the first span block's
width... but then again, I might be sooo wrong--there might be no right
in sight!

tried left:100px, margin-left:100px, with/without float:left/none

ps I'm only interested in css2 capable browsers (been trying mozilla
1/Netscape 7, IE 5.1.3 (Mac)




More information about the thelist mailing list