Previous Message
Next Message

false table

Sent by chuck clark on 16 September 2005 17:05


Hi Ben, 
 That works great! I am curious about the top:-18px; How do you arrive at 
that value? 
does it have anything to do with font size and line spaceing?
 Thanks,
Chuck

 On 9/16/05, Ben Ward [EMAIL-REMOVED]> wrote: 
> 
> I don't know if this is what you were after, but
> <html>
> <head>
> <style type="text/css">
> body{ background-color:#ccc; color:#000; margin:0; padding:10px;}
> div#currentTotal{border:1px solid #000; width:200px;}
> span.rightside{float:right;position:relative;top:-18px;}
> span#total{border-top:1px solid #000;}
> </style>
> </head>
> <body>
> <div id="currentTotal">
> <p>SubTotal<span class="rightside">$ 10.00</span></p>
> <p>Shipping<span class="rightside">$ 2.99</span></p>
> <p>Tax<span class="rightside">$ 1.59</span></p>
> <p>Total<span class="rightside" id="total" >$ 14.58</span></p>
> </div>
> </body>
> </html>
> 
> 
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: