NS Graphics
08-01-2006, 01:25 PM
How can I place a table at the yop left cornor of a page. When I attempt it it places it at about 25px down from the top and left about 15 px. I need it at 0 left and 0 tall?
|
Click to See Complete Forum and Search --> : HTML/Tables NS Graphics 08-01-2006, 01:25 PM How can I place a table at the yop left cornor of a page. When I attempt it it places it at about 25px down from the top and left about 15 px. I need it at 0 left and 0 tall? the tree 08-01-2006, 01:38 PM In the head element, naturally.<style type="text/css"> body{ margin: 0; padding: 0; } </style> NS Graphics 08-01-2006, 01:49 PM Hey thanks a lot. felgall 08-01-2006, 05:43 PM Top left corner of a page is an unusual place for a table to go. Usually you want the site title, navigation, and some sort of description of what the page is about above and to the left of tabular data. pacerier 08-05-2006, 06:00 AM that's not entirely true. some people like to create a table with 100% width and height to control the overall flow of the page. we can still have the navigation table inside the flow table itself. the tree 08-05-2006, 07:51 AM a table with 100% width and height to control the overall flow of the page.A whole page of tabular data? Isn't that a bit, well, imposing? we can still have the navigation table inside the flow table itself.Navigation table? What kind of a site would have primary navigation that could be described in a table? pacerier 08-05-2006, 09:52 AM hmm, im actually talking about this:Top left corner of a page is an unusual place for a table to go. Usually you want the site title, navigation, and some sort of description of what the page is about above and to the left of tabular data. where he mentions the navigation stuff. and yes well back to the imposed question, when i mean a 100% width and 100% height table, it refers to a sort of skeleton for the page, not a tabular data. so we can have the tabular data, the navigation, title, description etc inside the skeleton table. the tree 08-05-2006, 10:24 AM So a table just for the hell of it then? pacerier 08-05-2006, 10:44 AM So a table just for the hell of it then? i dont quite understand what you mean by that. basically what i meant by a skeleton table is something like this: +---------+---------------------+ | | | | | | | | | | | | | | | | | | | | | +---------+---------------------+ where it starts off as the first element: <body> <table> <tr> <td> <!-- here goes the navigation section --> <!-- depending on designs, it may well contain several more tables within it --> <table> <tr> <td> <!-- and more if required --> </td> </tr> </table> </td> </tr> </table> </body> usually i do it this way because i can first set the width of the skeleton table so that the navigation section doesn't exceed the amount of length given. some people may not like it this way though, its more of ice design then liquid design. the tree 08-05-2006, 11:30 AM But surely the division between the navigation (still can't understand why that'd involve a table) is nothing more than a plain old division, they aren't part of the same collection of data so wouldn't it be more semantic (as well as shorter) just to use dividing elements?<body> <div style="float:left;"> [...] </div> <div style="float: left;"> [...] </div> </body> pacerier 08-05-2006, 11:43 AM well there are many ways to do it, i find it easier to do pages similar to this with the skeleton table while some may have their own way of doing it: +----+---------------------+--+ | | | | | +---------------------+ | | | | | | | | | | | | | | | | | | | | | | | | | +----+---------------------+--+ +-----------------------------+ ray326 08-05-2006, 01:17 PM Tables are for delivering tablular data, not for page layout. felgall 08-05-2006, 06:45 PM Tables are for delivering tablular data, not for page layout. Which is why I made my original comment that they should never go at the top left corner of the page. Why use 10 times as much code and lower your search engine rankings by many pages just to use tables for something they were never meant for when using stylesheets are easier to code, result in shorter code, and don't confine you to a grid layout the way a table would. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |