Solved

IE is inserting a space above a content container in a CSS website

Posted on 2013-11-29
5
406 Views
Last Modified: 2013-12-09
Hi, going around in circles trying to resolve. I think it is due to a quirk in how IE reads positioning of CSS elements. I attach the HTML file for one page, (all but Home page are created from a single template) built in Dreamweaver CC. The webpages display fine in Firefox, Chrome and Opera, but,  IE inserts a space above the main body content container set as an editable region.

If I change the relative positioning setting for the menu buttons, IE will display correctly, but, Chrome pushes the content below the bottom of the menu.

The menus code (which is created from a Dreamweaver extension), sit in a div which sits inside the div 'Sidebar' container. Is this what causes IE to misplace the body content container ??

View this page http://www.destinationdata.co.uk/sportpathways/spl-privacy.html in IE and Firefox. The Breadcrumb and all content below is pushed downwards only in IE. The Breadcrumb line should be level with top of the 'Home' Button as it is in other browsers.

The Breadcrumb line is at the top of the editable 'container'

The attached files are before cleaning up. I did an earlier clean but it did not resolve.

Rgds Jonathan
menu204id14-style.css
spl-subpage.css
spl-privacy.html
0
Comment
Question by:nextenso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

by:
nanharbison earned 500 total points
ID: 39685773
This page looks exactly the same in FF 25 and IE 11 on my Windows 7 computer. But do you have a separate style sheet for IE? You might consider that, so you can change the CSS rules for the IE style sheet and it won't change any of the rules for the other browsers.
It is suggestion #3 on this page:
http://www.456bereastreet.com/archive/200612/internet_explorer_and_the_css_box_model/
0
 

Author Comment

by:nextenso
ID: 39685786
Hi, thanks Nanharbison, I will try that out tomorrow and let you know.
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39685806
I got this advice on this website years ago, when I was totally defeated by CSS rules for IE. It has saved my life ever since.
0
 

Author Closing Comment

by:nextenso
ID: 39706296
Hit it on the nail first time.
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39706968
Once you know this, it's so easy.... but you have to know it!!!!
Thanks for the points.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question