Solved

Contents shift down in IE 6

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML and CSS for a complex page 20 63
FIx alignment of two texts 1 26
Unwanted gap in IE11 between header and menu 9 20
css help with menu spacing 10 32
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 …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now