I have a huge problem. I am building a website for my company and came in half way through a project to finish of a website. The site is designed using dreaded tables and dot net nuke.
Naturally tables are not my option but the option of the project manager, however that is not the problem..
I am having trouble with a header, navigation gap in internet explorer and have tried every trick in the book to make it vanish..
This would normally be very easy to fix, however take not ethat I am talking about a cms with its own set of resets and tables..this may be an easy fix but I just cant see it
lpa-group.directcms.co.uk is the testing server that I am building the site on.
The problem is that in IE the gap is to big between the header and the nav
I look forward to your advice
Which IE are you seeing this on? There are 4 different ones in common use, all quite different.
I am seeing this in IE 7 and have tried almost every hack and workaround possible to get the gap to disappear
If I was not bound to a deadline I would have started the thing from scracth unfortunately time does not allow for this
The first thing would be to check whether there is some extra padding getting applied.
You have a number of css files that are showing the BOM (Byte order mark) at the start of the file and may corrupt some styles in some browsers.
[B]ï»¿[/B]/* background color for the content part of the pages */
Remove the BOM.
If find it nearly impossible to debug IE unless I have the files on my own computer. But maybe you could try removing the height from here:
background-position: left top;
<font color='"Red"'>height: 164px;</font>
padding: 15px 0 0 30px;
Dunno, though. Just clutching at straws.
Ok, the main problem is as I suspected and you have set the logo to have a height and some padding which makes it bigger than the parent.
[B] padding:15px 0px 0px 30px;[/B]
Remove the top padding or reduce the height by 15px.
The parent td is only 164px high:
Thanks. Unfortunately that solution did not work
I reduced the logo size down by 15 pixels to no avail and event tested by removing the css of the two elements mentioned above. However the nav stayed put in IE
That fixed it in IE8 as that was broken before also. The problem is these two empty floated divs that are holding the page open in IE7.
<!-- End_Module_387 -->
[B] <div style="float:left;"></div>
What are they for? If you don't need them then remove them.
Thanks for that Paul. Sorry for not getting back sooner it took me long enough to find the darn container in dnn that had the code..but yes that worked a treat.
DNN has a bit of a learning curve, had this been a flat html site I would never had these problems..IN any case you saved my bacon as I would never had found that code..and I certainly would not have made empty divs
This topic is now closed. New replies are no longer allowed.