Forum Moderators: not2easy

Message Too Old, No Replies

some text on the left and some test right

         

256mb

7:07 pm on May 6, 2004 (gmt 0)

10+ Year Member



Hi,

I want some of my text to be justified to the left (title) and some to be justified to the right (short description) on the same line.

example:

Title on the left____________________short desp on the right

I tried to to using "position" but I can't use absolute because it's not always the same postion on the page. I also tried left padding but the short description do not align.

Thanks.

DrDoc

7:30 pm on May 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

Have you tried using floats?
Use float:left on one element, and float:right on the other...

256mb

7:38 pm on May 6, 2004 (gmt 0)

10+ Year Member



Thanks for the quick reply. Putting on both element worked.

I didnt think I need to put float on the left one.

thanks.

DrDoc

7:51 pm on May 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don't, as long as the floated elements comes first.