Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

100% div height 1

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Ok then. Check out in internet explorer
If you change the page height the header and footer never resize, only the main text. I did this with tables.

Now i am rewriting it for other browsers (!) and am trying to acheive the same effect with just layers

the page is layed out thus

<div id="wrapper">
<div id="header"></div>
<div id="heading"></div>
<div id="body"></div>
<div id="menu"></div>
<div id="footer"></div>
</div>

I got the layout fine, but just cant get it to only reduce the size of the body div. Any ideas?
 
And then try adding a complete doctype and watch your code fail.

*cLFlaVA
----------------------------
[tt]Sigs cause cancer.[/tt]
 
I agree.
Introducing proprietery "hacks" goes against the whole ethos of web standards. The key phrase being proprietery.

Sure, we have to hack to accomodate different browser treatment of CSS but those hacks work by excluding some browsers from misinterpreting standard properties. They still employ the standards.
IE conditionals on the other hand, work by creating a whole new, non-standard fix that only works with 1 browser.

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top