bottom 20 px from "canvas" NOT screen - possible ?

Discussion in 'HTML & Website Design' started by AndyTT75, Nov 14, 2008.

  1. #1


    Hello to all

    Can anyone help me ?

    I'd like to create a box whose bottom is always 20 px from the bottom of the "canvas" (=the total area rendered by the browser).

    This is straightforward when the height of the canvas is less than the screen height

    But v v tricky when the canvas is taller than the screen-height.

    Is this possible with CSS ? If so, how ?

    Thanks for help.


     
    AndyTT75, Nov 14, 2008 IP
  2. cipals15

    cipals15 Well-Known Member

    Messages:
    1,085
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Define canvass?

    Maybe overflow: auto; can help. :D
     
    cipals15, Nov 14, 2008 IP
  3. AndyTT75

    AndyTT75 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If monitor size were infinite then "canvas" would be the size of the page.

    (hope this makes sense)
     
    AndyTT75, Nov 14, 2008 IP
  4. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #4
    You would put a height on body and then make it overflow:auto; though this isn't reccomended since people use all sorts of different browser heights. 1280x1024, 1024x768, 800x600, etc.

    YIPKP,
    Nick
     
    Hades, Nov 14, 2008 IP