Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2006, 10:05 PM
Yeah
Guest
 
Posts: n/a
Default 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?


  #2  
Old February 27th, 2006, 11:15 PM
windandwaves
Guest
 
Posts: n/a
Default Re: Double text align in a table cell

Yeah wrote:[color=blue]
> 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?[/color]

This may work

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


HTH
[color=blue]
> Nicolaas[/color]


  #3  
Old February 28th, 2006, 10:15 AM
windandwaves
Guest
 
Posts: n/a
Default Re: Double text align in a table cell

windandwaves wrote:
sorry, I meant:

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


  #4  
Old February 28th, 2006, 06:35 PM
Tony
Guest
 
Posts: n/a
Default Re: Double text align in a table cell

windandwaves wrote:[color=blue]
> windandwaves wrote:
> sorry, I meant:
>
> <div id="two" style="float: right; text-align: right;">right stuff</div>
> <div id="one">left stuff</div>[/color]

The text-align:right is PROBABLY not necessary with the float:right, but
it also won't hurt...


  #5  
Old February 28th, 2006, 07:05 PM
Harlan Messinger
Guest
 
Posts: n/a
Default Re: Double text align in a table cell

Tony wrote:[color=blue]
> windandwaves wrote:
>[color=green]
>> windandwaves wrote:
>> sorry, I meant:
>>
>> <div id="two" style="float: right; text-align: right;">right stuff</div>
>> <div id="one">left stuff</div>[/color]
>
>
> The text-align:right is PROBABLY not necessary with the float:right, but
> it also won't hurt...[/color]

It is necessary if the default alignment is left and the float flow onto
more than one line.
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles