TGIF Posted July 30, 2006 Share Posted July 30, 2006 I dont' know too much about CSS. Just wonder how to define style sheet class to align several words on the left and several words on the right in the same table cell?Another question is: what is the child node of table element?Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/ Share on other sites More sharing options...
moberemk Posted July 30, 2006 Share Posted July 30, 2006 float: left; and width: widthpx; for the left element, and the rest will fall into place. As for the child node of a table element, I dunno. <tr> maybe? Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/#findComment-65868 Share on other sites More sharing options...
Ifa Posted July 31, 2006 Share Posted July 31, 2006 Or you can use text-align:right and left<tr> is the child node of a <table>, and <td> is the child node of a <tr> Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/#findComment-66405 Share on other sites More sharing options...
nogray Posted July 31, 2006 Share Posted July 31, 2006 child node for the table is <tbody><thead> and <tfoot> if you want to add elements using JavaScript. Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/#findComment-66463 Share on other sites More sharing options...
moberemk Posted July 31, 2006 Share Posted July 31, 2006 [quote author=Ifa link=topic=102289.msg406520#msg406520 date=1154359837]Or you can use text-align:right and left[/quote]I don't think that's what he's after. I think that he means blocks of text, like on Wikipedia. Besides, that won't let them stack next to one another, they'll just go one on one line, and one on the other. Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/#findComment-66488 Share on other sites More sharing options...
silentwf Posted August 5, 2006 Share Posted August 5, 2006 use <span> <p> <font> and there are many more tagsjust use a class. like: <span class="right"> and such Link to comment https://forums.phpfreaks.com/topic/15988-how-to-align-words-in-the-same-table-cell/#findComment-69781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.