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!
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!
Well, unless you use layers, and unless you use two different cells, I don't see how you could do this. But, as usual, I'm probably wrong, because there's probably some different way to do this I'm unaware of. So, don't give up on this yet, but I can't see how it would be done.
- Mike
Thank you for your fast reply!
I didn't expect it was that hard! It's from an interview question.
Do you know the answer for the second question?
Thanks.
Originally Posted by mburt
I'm not sure on the other question.
- Mike
Thank you anyway!
Originally Posted by mburt
I think the child node of a table element is the TBODY.
The ideal way to do this would be:I don't know if it's valid to have <p>s inside a <td> though. If not, use separate table cells.Code:<td> <p style="text-align:left;">Some left-aligned text</p> <p style="text-align:right;">Some right-aligned text</p> </td>
mburt: The <layer> element has been obsolete since about Netscape 4 :-\ Nowadays we use <div>, or a more semantically-appropriate block-level element if one is available.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thank you!
I don't know if it is valid to put <p>s in a table cell either. But I tried it just now, the text simply went to seperate line and it didn't work.
This is an interview question and I have to use same table cell to do this! It's really frustrating!
Originally Posted by Twey
When I said layer, I meant <div>. I guess I wasn't specific enoughThe <layer> element has been obsolete since about Netscape 4![]()
- Mike
But, I still don't know how you would put it on the same line...
- Mike
It's ok. I may tell them I don't know. Thank you!
Originally Posted by mburt
Bookmarks