dcsimg
www.webdeveloper.com
Results 1 to 12 of 12

Thread: Table Posisiton

  1. #1
    Join Date
    Mar 2003
    Location
    Isle of Man
    Posts
    46

    Table Posisiton

    How do I align a table to the bottom of the screen?

    Thanks

  2. #2
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    You mean like

    <table style="position:absolute; bottom:0px;">

    </table>

    or something else?

    Dave

  3. #3
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    <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?

  4. #4
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    Is there any other way? (one which really positions it at the bottom of the page?)

  5. #5
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    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.

  6. #6
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    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!!

  7. #7
    Join Date
    Mar 2003
    Location
    The Lone Star State
    Posts
    1,126
    I would suggest putting the table in a frame if you want in the view of the page.

  8. #8
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    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/...ercheight.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".

  9. #9
    Join Date
    Mar 2003
    Location
    Isle of Man
    Posts
    46
    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
    Last edited by Grunty; 05-21-2003 at 05:25 AM.

  10. #10
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    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
    Last edited by DaveSW; 05-21-2003 at 06:37 AM.

  11. #11
    Join Date
    Mar 2003
    Location
    Isle of Man
    Posts
    46
    Thanks, worked a treat

  12. #12
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147

    Thumbs up Great

    No probs!!

    Dave

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles