![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Data could be a table, or maybe a list. Here is a list example. |
#3
| |||
| |||
|
|
Jonathan N. Little wrote: Data could be a table, or maybe a list. Here is a list example. Or it could be simply <span Your working example uses position:absolute This one uses position:relative style type="text/css" .menuitem { border-bottom: dotted 1px black; text-align: right; } .name { background: white; float: left; margin-top: 3px; } .price { background: white; position: relative; top: 3px; } /style /head body h1>Using Position Relative</h1 div class="menuitem" span class="name">Steak Diane</span span class="price">15.00</span /div /body You need to add "clear: left;" to ".menuitem" if you want more than on |
#4
| |||
| |||
|
|
Gus Richter wrote: Jonathan N. Little wrote: Data could be a table, or maybe a list. Here is a list example. Or it could be simply <span Your working example uses position:absolute This one uses position:relative You need to add "clear: left;" to ".menuitem" if you want more than on item. I just though it made more semantic sense being a list than divs Yes. Just another way to skin a cat. Whichever way works for you. |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |