![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
In your #myDiv statement in your CSS, remove the height: 100%; and it should stretch accordingly. When setting the height like that, Firefox interprets that as 100% of the browser window, not 100% of the content. Removing the height attribute should fix the problem. Sorry but this solution doest not work for the first scenario: the div |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Original :: musicinmyhead :: 2004-12-09 20:54 In your #myDiv statement in your CSS, remove the height: 100%; and it should stretch accordingly. When setting the height like that, Firefox interprets that as 100% of the browser window, not 100% of the content. Removing the height attribute should fix the problem. Sorry but this solution doest not work for the first scenario: the div adjusts its length to the content, so it's about an inch tall and doesn't stretch to the bottom of the page. I've also tried using 'min-height'; that worked great in Mozilla, did not work in IE. Any other ideas? |
#6
| |||
| |||
|
|
Hi, Terry wrote: Original :: musicinmyhead :: 2004-12-09 20:54 In your #myDiv statement in your CSS, remove the height: 100%; and it should stretch accordingly. When setting the height like that, Firefox interprets that as 100% of the browser window, not 100% of the content. Removing the height attribute should fix the problem. Sorry but this solution doest not work for the first scenario: the div adjusts its length to the content, so it's about an inch tall and doesn't stretch to the bottom of the page. I've also tried using 'min-height'; that worked great in Mozilla, did not work in IE. Any other ideas? Two ideas: Either use Dean Edwards' IE7 patch to let IE understand min-height or try to place an empty div with 100% height in #myDiv. But I fear the latter won't do it (since it has 100% of #myDiv as height...). Chris |
#7
| |||
| |||
|
|
Hi, Terry wrote: Original :: musicinmyhead :: 2004-12-09 20:54 In your #myDiv statement in your CSS, remove the height: 100%; and it should stretch accordingly. When setting the height like that, Firefox interprets that as 100% of the browser window, not 100% of the content. Removing the height attribute should fix the problem. Sorry but this solution doest not work for the first scenario: the div adjusts its length to the content, so it's about an inch tall and doesn't stretch to the bottom of the page. I've also tried using 'min-height'; that worked great in Mozilla, did not work in IE. Any other ideas? Two ideas: Either use Dean Edwards' IE7 patch to let IE understand min-height or try to place an empty div with 100% height in #myDiv. But I fear the latter won't do it (since it has 100% of #myDiv as height...). Chris |
#8
| |||
| |||
|
|
I've taken another approach that shows some promise but I STILL need help, please. I need a full-width header on top of the page and *then* a narrower content area. I've decided to play with the margins of the BODY element and you can see the result i'm hoping for here, if you use Mozilla: http://novodom.net/test3.html That's exactly what I'm after -- the only thing left to do is to make it work in IE. IE does show everytning in the right place, but the width of the header is not what I expected. Can someone explain or suggest tips for dealing with the header width sot that it spreads across the whole page? Thanks again. |
#9
| |||
| |||
|
|
I've taken another approach that shows some promise but I STILL need help, please. I need a full-width header on top of the page and *then* a narrower content area. I've decided to play with the margins of the BODY element and you can see the result i'm hoping for here, if you use Mozilla: http://novodom.net/test3.html That's exactly what I'm after -- the only thing left to do is to make it work in IE. IE does show everytning in the right place, but the width of the header is not what I expected. Can someone explain or suggest tips for dealing with the header width sot that it spreads across the whole page? Thanks again. Ok there are a few things you can change to make this work. First off wrap all of your content in a div and give it an ID, for instance #all. Then make sure the header is at the top outside of the #all div so that the margins for #all don't affect the header. Then in your css, change the body to #all and change the html to "HTML, BODY" instead. You can see an example here of what I changed: http://hfd.mine.nu/full_width_header.html And just another note, in your #myDiv css you gave it a z-index yet it was positioned relatively. When you do that the browser will ignore the z-index, because it only works with absolutely positioned elements. |
![]() |
| Thread Tools | |
| Display Modes | |
| |