Problems with Footer - IE6 adding space below image ??

This is a discussion on "Problems with Footer - IE6 adding space below image ??" within the Web Page Design section. This forum, and the thread "Problems with Footer - IE6 adding space below image ?? are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Feb 29th, 2008, 11:35
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Problems with Footer - IE6 adding space below image ??

I have a standard layout and in my HTML the code is as follows ...


Code: Select all
 
<div id="footer">
     <p>&copy; 2008 Blah Blah | design by me</p>
   </div>

my CSS is ...


Code: Select all
 
body {
 text-align : center;
 background-color: #797777;
 }
 
#wrapper {
 width : 900px;
 text-align : left ;
 margin-left : auto ;
 margin-right : auto ;
 
 border: 1px solid #fff;
 }
 
#header {
 padding-top: 10px;
 
 background: url(images/header.png);
 
 height: 158px;
 }
 
#header img {
 
 display: block;
 
 } 
 
#content {
 float: left;
 width: 598px;
 
 background: url(images/main.png);
 
 height: 796px;
 }
 
#sidebar {
 float: right;
 width: 302px;
 
 background: url(images/sidebar.png);
 
 height: 796px;
 }
 
 
/* ----- Navigation -----  */
 
#nav {
 float: right;
 padding: 0 0 2px 15px;
 margin: 0;
 }
 
#nav ul {
 margin: 0;
 padding: 0 0 0 30px;
 list-style: none;
 }
 
#nav li {
 float: left;
 margin: 0;
 padding: 0 20px 0 0;
 }
 
#nav li a {
 float: left;
 text-align: center;
 margin: 100px 0 0 0;
 padding: 4px 12px;
 font-weight: bold;
 text-decoration: none;
 color: #f1f7ee;
 }
 
#nav li a:hover {
 color: #444;
 
 background: #f1f7ee;
 }
 
#nav li a.active {
 color: #444;
 background: #f1f7ee;
 }
 
 
/* ----- Typography ----- */
 
body {
 font: small Verdana, Arial, Geneva, Sans-serif;
 line-height: 1.6em;
 color: #444;
 }
 
h1 {
 padding-top: 10px;
 font-size: 1.2em;
 color:#422100
 }
 
h2 {
 font-size: 1em;
 font-style: normal;
 color: #422100;
 }
 
 
 
h3 {
 font-size: 0.7em;
 font-style: normal;
 color: #fff;
 }
 

/* ----- Links ----- */
 
a {
 color: #f96;
 }
 
a:visited {
 color: #422100;
 }
 
a:hover {
 color: #422100;
 }
 
#footer a {
 color: #333;
 text-decoration: none;
 }
 
#footer a:visited {
 color: #333;
 text-decoration: none;
 }
 
#footer a:hover {
 color: #422100;
 text-decoration: underline;
 }
 

/* ------ Footer ----- */
 
#footer {
 background: url(images/footer.png);
 
 height: 46px;
 text-align: center;
 clear: both;
 color: #fff;
 }

at present my Copyright text sits at the top of the Footer Div , when i try to center it horizontally it's fine (in IE7 FF etc...) but in IE6 it strangely adds a gap at the bottom of the Footer Div ???
help greatly appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 29th, 2008, 11:45
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

I think that may be because your text is inside a <p> tag. Just put your text in another div and add some padding top. Something like.....

HTML
Code: Select all
<div id="footer">
<div is="footer_text">&copy; 2008 Blah Blah | design by me</div>
</div>
CSS
Code: Select all
#footer {
 background: url(images/footer.png);
 height: 46px;
 clear: both;
 color: #fff;
 }

#footer_text {
 font: small Verdana, Arial, Geneva, Sans-serif;
 line-height: 1.6em;
 color: #444;
 text-align: center;
 padding-top: 20px; <----or something near to put it vertically center
 }
That should solve it hopefully.

Also add this to your css at top.....

Code: Select all
*{
margin: 0;
padding: 0;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 29th, 2008, 12:13
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

thanks for that buddy , worked a treat ... the only problem now , i have just noticed my header is doing the same damn thing?!?! in both IE6 and 7 !!!! damn damn !!

**resolved .. just took the 10px padding from my #header**

Last edited by slimboyfatz32; Feb 29th, 2008 at 12:21.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 29th, 2008, 12:42
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

Glad to be of assistance lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 29th, 2008, 12:44
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

Oh, forgot to mention slimboy, mark the thread as solved
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 29th, 2008, 12:50
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

how do u do that ?? lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 29th, 2008, 12:54
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Footer - IE6 adding space below image ??

lol, near the top of this page theres an option called 'thread tools', click that then select 'mark thread as solved' from the dropdown menu. Peace.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 29th, 2008, 21:03
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 726
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Problems with Footer - IE6 adding space below image ??

Quote:
Originally Posted by danny322 View Post
Oh, forgot to mention slimboy, mark the thread as solved
The [SOLVED] Option is no longer in use.
It should be up and running in a while, but for the moment, it has been turned off.

Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems making horizontal footer with 2 lines... MikeTheVike Web Page Design 6 Jul 13th, 2007 13:06
Problem with my footer background image in IE dthomas31uk Web Page Design 3 Jul 1st, 2007 12:49
IE6 adding unecessary space between divs tox0tes Web Page Design 2 Jun 29th, 2007 19:42
CSS Sticky Footer problems karinne Web Page Design 2 May 1st, 2007 18:05
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27


All times are GMT. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42