Grunty
05-20-2003, 10:58 AM
How do I align a table to the bottom of the screen?
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Table Posisiton Grunty 05-20-2003, 10:58 AM How do I align a table to the bottom of the screen? Thanks DaveSW 05-20-2003, 11:16 AM You mean like <table style="position:absolute; bottom:0px;"> </table> or something else? Dave nkaisare 05-20-2003, 11:58 AM <table style="position:absolute; bottom:0px;"> If I am not mistaken, there are two interpretations of this: 1. the table will be positioned relative to the viewport 2. the table will be positioned relative to </html> (since its bottom: 0). The question is: why do you want the table to be aligned at the bottom of the screen? Using position:absolute will take the table out of the normal flow of the document. Hence there is a possibility that other content on the page will flow over the table. Next question: what if the table spans more than the height of the viewport? DaveSW 05-20-2003, 12:17 PM Is there any other way? (one which really positions it at the bottom of the page?) nkaisare 05-20-2003, 12:34 PM Originally posted by DaveSW Is there any other way? (one which really positions it at the bottom of the page?) No, I dont know. I remember having a similar problem sometime back... I was just thinking aloud. DaveSW 05-20-2003, 01:45 PM I've had that trouble trying to make something appear at the bottom of a page too - all the objects were absolutely poistioned and if I didn't use positioning it went underneath, otherwise it sat on top of something else. Well, he did say the screen anyway!! soccer362001 05-20-2003, 03:07 PM I would suggest putting the table in a frame if you want in the view of the page. nkaisare 05-20-2003, 03:21 PM I would suggest putting the table in a frame And I would suggest against doing that. What the heck matters if the page isn't exactly displayed at the bottom. It DOES matter if search engines aren't able to spider the pages very well due to frames. Probably, you may want to look at the following site: http://www.xs4all.nl/~ppk/css2tests/index.html?100percheight.html This gives an example how to make the <body> 100% of viewport. Once you get that, position: absolute; bottom: 0 will put the table at the bottom. I have a feeling that Grunty was not asking for something so "complicated". Grunty 05-21-2003, 03:53 AM Phew, I only asked a little question, but thanks for your replies anyway. Perhaps I should explain what it is I need. I want an html page to be the desktop of a machine located in our company library. I have already worked out how to fix it as the default using IEAK, and the page will always be full screen. Presently, I have a dynamic menu at the top of the page which lists alot of useful links, so I would like a second table at the bottom of the screen which doesnt get in the way of the drop down menus and will hold icons for locally installed applications such as Word, Excel and library sofware etc. I have just tried the "style="position:absolute; bottom:0px;" command and it works a bit. he table is now at the bottom, but positioned on the left hand side, even though I also added "align=center" I hope that makes sense Thanks DaveSW 05-21-2003, 05:33 AM If it's for one computer, you can add a left value like this: style="position:absolute; left:200px; bottom:0px;" This will position it from the left and bottom. The only problem is if it is for more than one computer with different screen sizes, where you'd have to modify the left value to suit the screen size. You'll need to experiment with the left number depending on the table size. Have fun Dave Grunty 05-21-2003, 06:48 AM Thanks, worked a treat DaveSW 05-21-2003, 06:53 AM No probs!! :D Dave webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |