Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old February 29th, 2008, 07:35 AM   #1
New Member
SuperMember
 

Join Date: Jan 2008
Location: UK
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 slimboyfatz32 is on a distinguished road
Problems with Footer - IE6 adding space below image ??

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


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

my CSS is ...


Code:
 
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
slimboyfatz32 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 07:45 AM   #2
Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 danny322 is on a distinguished road
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:
<div id="footer">
<div is="footer_text">&copy; 2008 Blah Blah | design by me</div>
</div>
CSS
Code:
#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:
*{
margin: 0;
padding: 0;
}
danny322 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:13 AM   #3
New Member
SuperMember
 

Join Date: Jan 2008
Location: UK
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 slimboyfatz32 is on a distinguished road
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; February 29th, 2008 at 08:21 AM..
slimboyfatz32 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:42 AM   #4
Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 danny322 is on a distinguished road
Re: Problems with Footer - IE6 adding space below image ??

Glad to be of assistance lol
danny322 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:44 AM   #5
Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 danny322 is on a distinguished road
Re: Problems with Footer - IE6 adding space below image ??

Oh, forgot to mention slimboy, mark the thread as solved
danny322 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:50 AM   #6
New Member
SuperMember
 

Join Date: Jan 2008
Location: UK
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 slimboyfatz32 is on a distinguished road
Re: Problems with Footer - IE6 adding space below image ??

how do u do that ?? lol
slimboyfatz32 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:54 AM   #7
Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 danny322 is on a distinguished road
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.
danny322 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 05:03 PM   #8
Ed
Highly Reputable Member
 

Join Date: Jul 2007
Location: Cork, Ireland
Posts: 828
Blog Entries: 1
Thanks: 1
Thanked 2 Times in 2 Posts
Rep Altering Power: 0 Ed is on a distinguished road
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
Ed is offline  
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

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 6 July 13th, 2007 09:06 AM
Problem with my footer background image in IE dthomas31uk HTML, XHTML and CSS 3 July 1st, 2007 08:49 AM
IE6 adding unecessary space between divs tox0tes HTML, XHTML and CSS 2 June 29th, 2007 03:42 PM
CSS Sticky Footer problems karinne HTML, XHTML and CSS 2 May 1st, 2007 02:05 PM
Background image overlaping footer image at bottom of div lw_d HTML, XHTML and CSS 4 March 20th, 2006 08:27 PM


Search Engine Optimization by vBSEO 3.2.0 RC8