Solved

Contents shift down in IE 6

Posted on 2009-05-12
4
363 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

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

Suggested Solutions

Title # Comments Views Activity
How to combine and minify CSS and JS files 5 61
Change box shadow 1 44
Why "Mobile First"? 5 62
CSS in HTML 5 67
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
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 customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

734 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