Solved

Contents shift down in IE 6

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
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…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

757 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