HTML & CSS
We have a website under development. The layout has extra vertical space between the logo and main navigation when viewed in IE.
The usual has layout type fixes don't seem to be working.
Any advice appreciated.
Hi t-min. Welcome to the forums.
Hm, that layout is a bit contorted and needs some tidying up . For some reason the whole top section is contained in a form that's leaving a lot of empty space in IE, as are these styles too:
<font color='"#FF0000"'>height: 90px;</font>
<font color='"#FF0000"'>height: 65px;</font>
This layout could be much neater and simpler, though, as it's not complex.
I removed the height on the items you indicated and it now lays out as required. (changes made on local dev not loaded to staging yet)
Thanks for the welcome and the feedback. Working on a small team it is good to get feedback from places like this. We though that tweaking a layout from an older project would make it easier on this one but it has probably made things messier then they needed to be.
Great, glad that helped. Please come back again if you have more questions.
Back again, me on this forum and the extra vertical whitespace in IE.
I have just added some CSS to give the site a sticky footer (adapted from http://www.cssstickyfooter.com/using-sticky-footer-code.html)
and it works everywhere, but in IE it gives heaps more vertical space in the header.
See the staging site:
Any advice or tips appreciated.
Which version of IE are you looking at? Sticky footers are hard to do—and most advice on how to do them is faulty—so perhaps look at this FAQ first:
Check to make sure you've covered all your bases. If not, that should guide you to where the problems are.
I am using IE8
Thanks for the suggestion. I have been trying things but not getting much luck. IE is till adding extra space.
Can you explain why your suggestion of removing the height specifications worked?
The heights did were not the same as the extra space that was added. It looked like there was some weird calculation happening.
This is the sticky footer CSS that I am using
The issue with extra spacing in IE turned out to be nested forms
The asp .net form wrapped the entire site and the search form had been placed in the header. IE was adding the header layout elements to the page twice. I used the Developer Tools (F12) in IE to look through the DOM to see where the space was being added.
The overly complicated layout definitely did not help us here. Thanks rapl.m for pointing us in the right direction!
You're welcome. I'm glad that was some use. It's nicer to find the solution yourself anyway.
This topic is now closed. New replies are no longer allowed.