Previous Message
Next Message

Re: [css-d] align some text to right

Sent by Michael Collins on 8 February 2002 20:08


At 2:08 PM -0800 2/8/02, Michael Collins wrote:
>Simple question (I hope). I want some text to align to the right 
>side of a line but remain on the same line as the text on the left 
>side. The following approach puts the two bits of text on separate 
>lines:
>
>(defined in an external stylesheet:)
>.title { font-weight:bold;color:#606; }
>
><p class="title">Michael Collins<span style="float:right;"><a 
>href="default.html">Return to Home</a></span>


I accomplished this, with help from Brian Costner, by simply applying 
the float to the item that goes to the right and moving this before 
the paragraph that is to stay to the left:

<p style="float:right;"><a href="default.html">Return to Home</a></p>

<p class="title">Michael Collins</p>

I haven't confirmed for different browsers (other than IE 6 on 
Windows and 5 for Mac OS 9) but does the trick for now.

Thanks for the help

-- 
Michael
__
||| Michael Collins       |||
||| Kuwago Web Services   |||      [EMAIL-REMOVED]
||| Seattle, WA, USA      |||      http://www.lassodev.com
Previous Message
Next Message

Message thread: