•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 427,207 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,135 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1261 | Replies: 3
![]() |
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I have a <div> that will not extend all the way down the page even with the height set to 100% on the <html> and <body> and the div itself. It will not display correctly in ie7 or firefox.
I have an external style sheet but this is basicly the structure of the page
CSS:
I would like any help someone can give me thanks
I have an external style sheet but this is basicly the structure of the page
html Syntax (Toggle Plain Text)
<html> <head> <body> <div id="wrapper"> <div id="colWrapper"> </div> </div> </body> </head> </html>
CSS:
css Syntax (Toggle Plain Text)
html {height:100%;} body{height:100%;} #wrapper{height:100%;} #colWrapper{height:100%}
Last edited by peter_budo : Apr 27th, 2008 at 3:35 am. Reason: Keep It Organized - please use [code] tags
it works ok on ie7 and opera for me. 1 is not a ff user.
<html>
<head>
<style type="text/css">
html {height:100%;}
body{height:100%; background:#0066FF}
#wrapper{height:100%; background:red}
#colWrapper{height:100%; width:80%; background:yellow}
</style>
</head>
<body>
<div id="wrapper"> wrapper text
<div id="colWrapper"> colWrapper text
</div>
</div>
</body>
</html>
Generally you can't control the vertical height of a screen object to match the size of the browser window. This is because there are too many possibilities among different browsers and window sizes.
Div is also very poorly designed and implemented. It generally assumes the height of the tallest object inside it.
Div is also very poorly designed and implemented. It generally assumes the height of the tallest object inside it.
Daylight-saving time uses more gasoline
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks I got it to work in ie6 still working on firefox
•
•
•
•
it works ok on ie7 and opera for me. 1 is not a ff user.
<html> <head> <style type="text/css"> html {height:100%;} body{height:100%; background:#0066FF} #wrapper{height:100%; background:red} #colWrapper{height:100%; width:80%; background:yellow} </style> </head> <body> <div id="wrapper"> wrapper text <div id="colWrapper"> colWrapper text </div> </div> </body> </html>
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- I need to grab the height of a div. (JavaScript / DHTML / AJAX)
- CSS - Making div vertically "overflow" (HTML and CSS)
- 100% height not working! (HTML and CSS)
- Problem with <div> height - Controlling flow from center div (JavaScript / DHTML / AJAX)
Other Threads in the HTML and CSS Forum
- Previous Thread: loading images into iframes
- Next Thread: Simple HTML Question



Linear Mode