Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Contents shift down in IE 6

Posted on 2009-05-12
4
Medium Priority
?
365 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 43

Accepted Solution

by:
David S. earned 2000 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 43

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

Technology Partners: 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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Suggested Courses

721 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