www.webdeveloper.com
Results 1 to 3 of 3

Thread: Box Size

  1. #1
    Join Date
    Apr 2003
    Location
    UK
    Posts
    61

    Box Size

    I have a page consisting of 2 elements one about the other, the top is 10px high, and the bottom needs to fill up the rest of the page, is there a way of defining in CSS the 2nd element to have a height of (100%-10)?

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Try this, for your bottom element:

    height: 100%;
    margin-top: 10px;

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Apr 2003
    Location
    UK
    Posts
    61
    thanks, never thought of puttting a deliberate gap in the top of the element then positioning it so the first one's displayed over the top margin of the lower one
    only took about 10 seconds to realise thats what you meant too

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