Previous Message
Next Message

text on one line, left and right justify

Sent by Ed Seehouse on 23 September 2006 01:01


On 9/22/06, Tracey Zellmann [EMAIL-REMOVED]> wrote:

> I have one line of text containing two elements. I want one to be left-justified and one to be
right-justified.
> Something like this:
>
> JAMES W. JACOBS,                                                                                  
                     Proprietor
>
> For instance, I am trying something like this:
>
> <p>JAMES W. JACOBS,<span class="title">Proprietor</span><p>
>
> If I use a style sheet that gives title text-align: right, I would think that might work.
>
> However, it does not. It just gives:
>
> JAMES W. JACOBS,Proprietor
>
> How can I accomplish this?

If I understand what you want correctly, the CSS rule:

span.title {float: right;}

....should do it.
-- 
Ed Seedhouse
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
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: