CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 28th, 2004, 04:41 PM
Mari-Anne Mari-Anne is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 Mari-Anne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IE gap between nested content & footer divs

I have a container div which includes a #header div, a left-floated #content div, a #right div, and a #footer div. The #content div has a background image that does not want to extend all the way down within the div to snuggly join the footer in any IE browser. I've tried the Holly hack, adding a line-height, relative positioning but to no avail. The stylesheet is embedded in the html file. Here's the link:

http://www.emaycreations.net/BuildWebsiteIII/Week6/finalexamPractice.html

It looks great in NN, FF and Opera but neither IE 5 nor 6 displays the page correctly. Can anyone help?

Mari-Anne in Montana

Reply With Quote
  #2  
Old June 28th, 2004, 07:04 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
You've run smack dab into some IE buggy behavior.
Code:
#nav ul {
	padding: 0;
	margin: 20px 0 0 0; 
	list-style: none;
	text-align: center;
	float: left;  /* lose the float */
	}

#nav li a:link, #nav li a:visited {
	display: block;
	width: 10.5em;   /*causes different effects at different window sizes.
                      IE wrongly expands the containing box.  Look at 800x600
                      Looks good in Moz and breaks in IE*/

<div id="right">
<h4>Additional Resoures:</h4>
<ol>
    …
</ol>
<div id="nav">
  <ul>
    …
</ul></div> <!-- end nav -->
</div> <!-- end right  -->
<div id="footer">Emaycreations 2004
</div> <!-- end footer -->
</div>  <!-- end container -->
<a href="http://validator.w3.org/check?uri=referer"><img border="0"
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!" height="31" width="88"></a>
</body>
</html>
I wouldn't use left margin in #right. As long as #content is longer than #right, it doesn't do anything but give IE another chance to screw up.

These suggestions are not tested. If they don't help, I may have time later to deconstruct and rebuild the page.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #3  
Old June 28th, 2004, 07:18 PM
Mari-Anne Mari-Anne is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 Mari-Anne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It worked!

Just losing the {float: left;} in the #nav ul rule did the trick! I can't believe it was so "simple" - you're a genious! Thanks a bunch. I really appreciate the help.

Mari-Anne

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > IE gap between nested content & footer divs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT