Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Member #
    5215
    How can I align text in a div to the bottom of the page?

    I am attempting to align the highest score to the bottom of page look here: www.osbaldestin.net

  2.  

  3. #2
    Senior Member Trico's Avatar
    Join Date
    Feb 2004
    Location
    Nottingham, UK
    Posts
    894
    Member #
    5081
    #bottom {

    position: absolute;
    bottom: 0; }

    <div id="bottom">
    Spamassasin Highest score = 53.7, see the email here
    </div>

    This should work.

  4. #3
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Member #
    5215
    Cheers for that.
    I am sure I had tried that, but probably only with position: relative;
    Wierd how the positioning works.

    Geoff

  5. #4
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Member #
    5215
    The only issue is when the original page is longer than the browser window, so the absolute position put it potentially over any text.
    Not sure how to get around that so I given in and stuck it at the top instead.

  6. #5
    Senior Member Riat_Sila's Avatar
    Join Date
    Oct 2003
    Location
    Berkshire, UK
    Posts
    417
    Member #
    3485
    You could set the margin-top value to the length of the page.

  7. #6
    Junior Member
    Join Date
    Mar 2004
    Posts
    5
    Member #
    5215
    And how would you get the length of the page?
    Sorry if this is a stupid question.

    Geoff

  8. #7
    Senior Member tekp's Avatar
    Join Date
    Jan 2004
    Location
    A small village near a small city near a small cit
    Posts
    918
    Member #
    4667
    Liked
    1 times
    dunno, print screen and crop it to your browser window - then see how big the image is?

    lol, i dont really know about this stuff
    tekp :cheeky: tekponline.com

  9. #8
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I'd have said that the way that Blackdragonhide suggested is the simplest way.. I've not heard of any simple methods. Though obviously you'll have to take multiple screenshots and merge them into one image.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  10. #9
    Senior Member Maverick's Avatar
    Join Date
    Sep 2003
    Location
    Hoboken, NJ
    Posts
    351
    Member #
    3253
    You can find a good article on CSS footers here:
    http://www.alistapart.com/articles/footers/
    www.stevenspoker.com
    "You can't lose what you don't put in the middle, ... but you can't win much either." -Mike McDermott (Rounders)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:11 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com