View Single Post

  #1 (permalink)  
Old 17-07-2008, 02:25 PM
jason jason is offline
Coder
 
Join Date: Apr 2008
Posts: 31
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
jason will become famous soon enough
Default Scaling Divs (simply 2 rows)

I know this is possible, but it is driving me mad.

For example's sake, I have just 2 divs inside the body tag of a page.

Both divs are to scale the full width of the body

The first div is just 100px heigh

The second div is to be placed underneath and consumes the remaining height of the body.

So basically we have 2 rows, a) is 100px heigh, and b) is (body_height - 100px).

Do I have to resort to using Javascript to get this working cross browser? or will CSS suffice?

Can anyone offer a code example that works cross browser? I have looked for this online, but can't find exactly what I'm looking for.
Reply With Quote