| Author |
Double text align in a table cell
|
|
|
| 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>
| |
|
| 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.
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |