Brian Jones wrote:

> I have a list

> How can I contruct my css so that the 'item' is to the left of the
> div and the 'price' floats to the far right of the div

My normal approach would be something like...

<ul>
<li><span>item 1</span>       price1</li>
<li><span>item 2</span>       price2</li>
<li><span>item 3</span>       price3</li>
</ul>

li {text-align: right;}
li span {float: left;}

...as CSS can only target elements, not the content within them ... at
least not yet.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to