RE: [css-d] Align text to two different sides of a TD

2005-08-06 Thread Glenn E. Lanier, II
 From: Fred Newtz
 Sent: Friday, August 05, 2005 12:33 PM

 Is there anyway I can align two different pieces of text to 
 two different
 sides of a TD?  I tried using div and span however it 
 is not working
 for me.  Here is what I am trying to do now:

 divtd class=rowclass1. Newtz, Fred   span style=text-align:
 rightbEnrolled on:/b 04/11/2005/td/span/div

If you float the span to the right, and place it before the text you want on the
left (and make sure to close your tags in the proper order), you can achieve
this (tested in Firefox).

table border=2 width=600pxtr
td class=rowclassspan style=float:right;ipsum/spanLorem/td
/trtable

If the ordering seems unnatural, you could also do something like:

style type=text\css
td.rowclass1  { text-align:right; }
td.rowclass1 span { float:left;   }
/style
table border=2 width=600pxtr
td class=rowclass1spanLorem/spanipsum/td
/trtable

--G


Glenn E. Lanier II
Email: [EMAIL PROTECTED]

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Align text to two different sides of a TD

2005-08-05 Thread Steve Clay
Friday, August 5, 2005, 1:32:45 PM, Fred Newtz wrote:
 Is there anyway I can align two different pieces of text to two different
 sides of a TD?  I tried using div and span however it is not working

 divtd class=rowclass1. Newtz, Fred   span style=text-align:
 rightbEnrolled on:/b 04/11/2005/td/span/div

Invalid TABLE markup...might I suggest:

td1. Newtz, Fred/tdtd class='enrolled'bEnrolled on:/b 04/11/2005/td

ie. just use two table cells, since the enroll date is certainly data

or instead of the class, try http://css-discuss.incutio.com/?page=StylingColumns

Steve
-- 
http://mrclay.org/ : http://frenchhorns.mrclay.org/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/