| | Well... could you? Specifically I mean can you place a <table> tag in a <td></td> tag which are already parts of tables.... if so, how do you go about doing it? |
|
|
Yes, as far as I know this is possible and works ok - most of old sites, which did not use CSS for the layout of the page, all used nested tables or tables inside tables to create a layout.
You should know that tables are not the most preffered method of creating layouts, because they are very hard to maintain and there are also other bad sides of doing that. If you want to create a good layout, learn CSS or cascading style sheets, because it really is worth it. Plus the concept is actually very simple once you get used to it... Yeah, I almost forgot..how you do it (if you want to stick with nested tables): CODE <table>
<tr> <td> <table>...</table> </td> </tr> </table>
Alright haha, thanks...
By the way, I know how to use CSS, but .... I don't have the expierience or skill to create a template to use yet, I use css in conjuction with my tables... Its mostly basic css............ I should probably practice that.....
yeah you can very well use a nested table.
by the way heavensounds is right. CSS is a far better alternative to styling. good luck!
Yes of course you can... I use nested tables for a lot of stuff. Not a big fan of div layers and I believe css should be for setting colors and styles and stuff not actually constructing the whole template with it. I would use colspan and rowspan because that way i would be able to do everything I could do with a nested table except do it all with one table, but I've found firefox gets very confused when you get a little too excited with it. Almost all of my layouts that i try to do with one table with the help of colspan and rowspan looks great in safari, camino, and *gulp* (as much as I hate to say it) IE, but firefox messes them all up. Sigh, I'm still on the search for the perfect browser...
Bear in mind that tables for layout brings many other problems rather than just difficult to read code, such as broken layouts whenever either the user stylesheet or the browser stylesheet (which shouldn't, but is known to with some of the more cheeky browsers) overrides your 'borders=0'. If nothing else, try using Lynx (a popular screen reader) to 'hear' your site - not only is this how many partially sighted and all blind users interact with your sight, but it makes it clear how your code is semantically incomprehensible. Also, if your code renders correctly in those browsers, and not Firefox (and more conspicuously, Opera) then you are relying on the incorrect display of those browsers. Not that there's anything wrong with catering for IE and its ~80% market share, but it's pretty well known that you can write valid xhtml (even transitional 1.0) according to the w3c specifications that IE cannot render correctly. If nothing else, as soon as you play with margins and padding you can bet your bottom dollar that IE has it wrong thanks to MS's flawed interpretation of the box model. I'm sure you already knew that Alex, but it winds me up sometimes when people code for IE, and then moan about FF and Opera...almost as much as people that spout standards-compliance on one hand, and then code for IE (not that you were doing either of those Anyway, I've fallen off topic. Tables are superb for displaying data, and are unfortunately being avoided by many for this thanks to the general bad press they get for layouts. However, that doesn't change the fact that using them for layout is bad practice, and getting into the form/function separation that CSS should teach you is a good habit for the long term. I think this is relevant, because the majority of situations I've seen where nested tables are used are cases where a table shouldn't be used at all - your table either needs additional columns/rows which are 'joined' by col/rowspan as Alex pointed out, or you should have just the data you want to nest in a table located within a div. That's my 2 cents - I do appreciate that the jury is still out on table usage, but I'm not a big fan - I'm sure it can be done well, but not as easily once someone knows an equivalent level of CSS.
Thanks for your opinion... I was only planning on using nested tables for my portfolio... so when the page loads, the image is displayed with the text how I wanted it.... but not for my layout...
Also, for the next version of my website, I'm looking towards a css layout... I'll have to practice how to set it up though...
Similar Topics
Keywords : put, tables, inside, tables,
Frames and Tables (3) FRAME SYNTAX Frame syntax is similar in scope and complexity to that used by tables, and has been (3) hi all ! I have 3 tables in my JSP, now the prob is that when I get some result from my server (13) How can I make tables on my web page to be static (always same size)? I want my page to always be 3 column, header, and possibly footer (10) Which one should I use to design my site with? Or mostly use anyway. Which is better for making it 3 how to tutorial (0) Perhaps you've heard that HTML tables reduce search engine optimization efficiency. The truth Example Script (3) Heare is a good trick: Copy and paste the code below, into the of your html document: CODE (1) is it possible to make a smaller background for a cell in a table because it would make it easier to Looking for put, tables, inside, tables,
|
|
![]() Can You Put Tables Inside Of Tables? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|