![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
The link you gave doesn't work for me, |
|
but hearing your problems perhaps this article will be of help to you: http://positioniseverything.net/easyclearing.html |
#4
| |||||
| |||||
|
|
Hello, |
|
The latest incarnation of my troubles can be seen at www.kidsinaction/fd3/x.html - both HTML and CSS validate. |
|
I have two problems with it... |
|
1) snip |
|
2) If you look at the page in IE, the header section does not have its content displayed. In FF it shows up fine. I have discovered that the problem is caused by having "clear:both" in the #footer. I have no idea why the one affects the other, but it does. If I remove this line from the CSS, then IE shows the header correctly, but (oddly) still has the footer clearing both other bits. FF does not have the footer clearing, and displays it in the little space between the links and the main content. How can I have it so that the footer appears cleared below the links and content, but does not cause the header content to disappear? I imagine that much of this is caused by my inexperience, so any tips would be greatly appreciated. I would like to avoid using hacks as much as possible, and try and fix these problems by improving my CSS if that can be done. TIA |
#5
| |||
| |||
|
|
1) If you view this in FF, quite often the block of links on the left break out of the white box and extend below it, leaving the footer stuck out in grey space. To see this, make the browser window shorter, and at some point a gap will appear between the white box and the green footer (which is supposed to be inside it). I would like all of the content to stay within the white box. IE shows this as I want it. |
#6
| |||
| |||
|
|
Alan Silver wrote: 1) If you view this in FF, quite often the block of links on the left break out of the white box and extend below it, leaving the footer stuck out in grey space. To see this, make the browser window shorter, and at some point a gap will appear between the white box and the green footer (which is supposed to be inside it). I would like all of the content to stay within the white box. IE shows this as I want it. I guess I have to comment in this one :-) as I suggested this way http://groups.google.com/group/comp....ring.styleshee ts/browse_frm/thread/0eb9968459442c07 |
|
Full disclosure: snip |
#7
| |||
| |||
|
|
1) snip This was fixed by removing the height from the body element. Not sure why it was there, but removing it fixed this problem. |
#8
| |||
| |||
|
|
I'm still left with the second problem though (see below) and would really appreciate any help. I'm pretty sure this is not the peekaboo bug as I tried the usual suggestions for that and none of them helped. The problem appears in IE6 and IE7, but not in FF 1.0.7 or Opera 8.54 Any ideas? TIA 2) If you look at the page in IE, the header section does not have its content displayed. In FF it shows up fine. I have discovered that the problem is caused by having "clear:both" in the #footer. I have no idea why the one affects the other, but it does. If I remove this line from the CSS, then IE shows the header correctly, but (oddly) still has the footer clearing both other bits. FF does not have the footer clearing, and displays it in the little space between the links and the main content. How can I have it so that the footer appears cleared below the links and content, but does not cause the header content to disappear? |
#9
| |||
| |||
|
|
2) If you look at the page in IE, the header section does not have its content displayed. In FF it shows up fine. I have discovered that the problem is caused by having "clear:both" in the #footer. I have no idea why the one affects the other, but it does. If I remove this line from the CSS, then IE shows the header correctly, but (oddly) still has the footer clearing both other bits. FF does not have the footer clearing, and displays it in the little space between the links and the main content. How can I have it so that the footer appears cleared below the links and content, but does not cause the header content to disappear? I have no idea why IE does that, I saw some mention of "disappearing" content when clear is used too extensively. So me real CSS expert may comment on that. I just don't see any purpose of this clear:both in the footer. Clear regulates the flow of the /following/ content, and if there is no content to follow why use it? It doesn't affect anyhow on the layout. |
#10
| |||
| |||
|
|
Alan Silver wrote: If I remove that clear from the #footer, then it looks like this... http://www.kidsinaction.org.uk/fd3/y.html No it doesn't, you broke something in the layout. Rather than look what, just take the version x and carefully remove clear:both out. That gives you (together with height:100% removed): |
![]() |
| Thread Tools | |
| Display Modes | |
| |