HighDots Forums  

Double text align in a table cell

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Double text align in a table cell in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Yeah
 
Posts: n/a

Default Double text align in a table cell - 02-27-2006 , 03:49 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?



Reply With Quote
  #2  
Old   
windandwaves
 
Posts: n/a

Default Re: Double text align in a table cell - 02-27-2006 , 05:02 PM






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

Quote:
Nicolaas



Reply With Quote
  #3  
Old   
windandwaves
 
Posts: n/a

Default Re: Double text align in a table cell - 02-28-2006 , 04:03 AM



windandwaves wrote:
sorry, I meant:

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



Reply With Quote
  #4  
Old   
Tony
 
Posts: n/a

Default Re: Double text align in a table cell - 02-28-2006 , 12:20 PM



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




Reply With Quote
  #5  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Double text align in a table cell - 02-28-2006 , 12:52 PM



Tony wrote:
Quote:
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...
It is necessary if the default alignment is left and the float flow onto
more than one line.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.