Solved

Contents shift down in IE 6

Posted on 2009-05-12
4
364 Views
Last Modified: 2012-05-06
Why does my content/navigation  move down to the bottom of the page in IE6 on a pc?

http://nsitedesigns.com/nsitedesigns/groundworx/5.html

#sidebar1 {
	float: left; /* since this element is floated, a width must be given */
	width: 191px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
	padding:0;
	margin:0;
}
#sidebar2 {
	float: right; /* since this element is floated, a width must be given */
	width: 168px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
	padding:0;
	margin:0;
}
 #mainContent { 
	width:540px;
	margin: 0 0 0 191px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
	padding: 0; /* remember that padding is the space inside the div box and margin is the space outside the div box */
	background-color:#fff;
}

Open in new window

0
Comment
Question by:nsitedesigns
[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
  • 2
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24370125
First thing to do is to give ul#main-nav margin-left:0

Next give #mainContent float:left and remove its left margin.

Also that logo image needs to have display:block

You might find 10 Things You Might Not Know About Using CSS helpful:
http://www.dynamicsitesolutions.com/blog/2008/12/10-things-you-might-not-know-about-using-css/
0
 

Author Closing Comment

by:nsitedesigns
ID: 31580739
worked perfectly!  only one small unrelated (?)  issue and that is on safari on a mac, at the bottom of the page below the "ground" is a white band and the background image continues.  Is this just a browser issue?  Should I open another ticket?
0
 
LVL 42

Expert Comment

by:David S.
ID: 24379130
> worked perfectly!

Glad to hear it.

> only one small unrelated (?) issue and that is on safari on a mac, at the bottom of the page below the
> "ground" is a white band and the background image continues. Is this just a browser issue?

My BrowserCam screenshots of Safari 2, 3.2.1, and 4.0b (in 1024x768) don't seem to show a white band there. What version(s) and screen resolution(s) did you look at?
0
 

Author Comment

by:nsitedesigns
ID: 24379277
Problem solved by putting background in container.  I tried to find where I asked you about this and could not locate the question.  I forgot I inserted in as part of another question.  Sorry for the bother on your part.  

p.s.  I checked out your website.  It looks pretty helpful.  In my spare time I hope to look it over in more detail.  : )
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses

627 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