Results 1 to 3 of 3

Thread: Adding a minimum height to a bottom-left position:fixed <div>

  1. #1
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Adding a minimum height to a bottom-left position:fixed <div>

    Okay then.

    I have a web page, badgerports.org, for something Ubuntoobish.

    Looks like this:



    Hover over the blobs, words appear in the gap between the copyright and blobs. Very simple.

    However, if the window height is too small, things go wrong. Take this 1024x600 (netbook) example:



    Everything goes to hell.

    The page needs a minimum height, such that the copyright stuff in the bottom corner can never overlap the stuff in the middle - but I like it in the bottom corner where it is, in any cases where the browser isn't on a baby screen.

    I've failed to work out how. Ideas?

  2. #2
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    Re: Adding a minimum height to a bottom-left position:fixed <div>

    I would say start with a container div that's position: relative, set min-height on that, then put everything in there, along with the bottom div, which you can then position: absolute and set bottom and left attributes.

    Or just have the copyright div beneath another div that has a min height and forget about positioning altogether.

    Also, <3 you for creating this as I am still running hardy on this very workstation.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  3. #3
    Flower Child stytagm's Avatar
    Join Date
    Aug 2004
    Location
    London
    Posts
    754
    Thanks
    47
    Thanked
    23 times in 18 posts

    Re: Adding a minimum height to a bottom-left position:fixed <div>

    Sorry for Necropost, but did you ever get this sorted out? If not, have a look at the sticky footer code here: http://ryanfait.com/sticky-footer/ It might solve the problem.
    They told me I was gullible ... and I believed them.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Minimum DIV Height CSS
    By ACiD303 in forum Software
    Replies: 10
    Last Post: 24-04-2007, 02:31 AM
  2. Height Kills
    By TeePee in forum Automotive
    Replies: 5
    Last Post: 01-12-2004, 04:28 PM

Posting Permissions

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