Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2006



Tip: Looking for answers? Try searching our database.

Double text align in a table cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yeah - 27 Feb 2006 21:49 GMT
I have a table cell in which one line of text is broken and aligned
separately (you know, telephone book-style). Inside the cell, the left piece
of text should remain at the left while the text on the right should be
aligned to the right.

This leaves the desired space in between, but there are three columns in
which the cells do this. The columns should not expand.

Is there any way to do this?
windandwaves - 27 Feb 2006 23:02 GMT
> I have a table cell in which one line of text is broken and aligned
> separately (you know, telephone book-style). Inside the cell, the
[quoted text clipped - 5 lines]
>
> Is there any way to do this?

This may work

<div id="two" style="float: right:">right stuff</div>
<div id="one">left stuff</div>

HTH

> Nicolaas
windandwaves - 28 Feb 2006 10:03 GMT
sorry, I meant:

<div id="two" style="float: right; text-align: right;">right stuff</div>
<div id="one">left stuff</div>
Tony - 28 Feb 2006 18:20 GMT
> sorry, I meant:
>
> <div id="two" style="float: right; text-align: right;">right stuff</div>
> <div id="one">left stuff</div>

The text-align:right is PROBABLY not necessary with the float:right, but
it also won't hurt...
Harlan Messinger - 28 Feb 2006 18:52 GMT
>> sorry, I meant:
>>
[quoted text clipped - 3 lines]
> The text-align:right is PROBABLY not necessary with the float:right, but
> it also won't hurt...

It is necessary if the default alignment is left and the float flow onto
more than one line.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.