This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > February 2006 > Double text align in a table cell





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Double text align in a table cell
Yeah

2006-02-27, 6:19 pm

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

2006-02-27, 6:19 pm

Yeah wrote:
> 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?


This may work

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


HTH

> Nicolaas



windandwaves

2006-02-28, 6:14 am

windandwaves wrote:
sorry, I meant:

<div id="two" style="float: right; text-align: right;">right stuff</div>
<div id="one">left stuff</div>


Tony

2006-02-28, 6:24 pm

windandwaves wrote:
> windandwaves wrote:
> 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

2006-02-28, 6:24 pm

Tony wrote:
> windandwaves wrote:
>
>
>
> 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.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews