Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-22-2007, 02:53 PM Extra padding in IE
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Something is giving me extra top padding in my footer in IE:
http://tmwebworks.com/afd/temp.php

Here is the style for the #footer:

Code:
#footer {
	background: #CCCCCC url(img/footer-bg.jpg) no-repeat top center;
	clear: both;
	padding: 16px;
}
All I have in the footer is a simple paragraph. By default, I have all margin and padding set to 0. All my paragraphs are set to have a bottom margin of 16px. I'm sure this is some sort of IE bug, but I can't seem to find a solution with the resources I've looked at.
Tom_M is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-22-2007, 03:54 PM Re: Extra padding in IE
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Umm.. your padding: 16px will put 16px of padding ON ALL SIDES.
If you set it to - padding: 0 16px; it will make top and bottom 0 and left and right 16.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-22-2007, 04:47 PM Re: Extra padding in IE
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Yes, I want padding on all four sides. My problem is that IE is adding extra top padding. If you compare the page in IE and FF, FF displays as I want it to, but like I said, IE is adding extra top padding. Almost looks like it is doubling my set padding of 16px.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 03-23-2007, 01:41 AM Re: Extra padding in IE
Junior Talker

Posts: 2
Name: Carol
Trades: 0
Looks like an IE margin bug. Declare a width for your footer div (width:100%).

HTH,
Carol
CKSF is offline
Reply With Quote
View Public Profile
 
Old 03-23-2007, 01:58 AM Re: Extra padding in IE
Mitch_40's Avatar
Experienced Talker

Posts: 39
Name: Mitchell McLeod
Location: Tongala, Australia
Trades: 0
see next post...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by Mitch_40; 03-23-2007 at 02:04 AM..
Mitch_40 is offline
Reply With Quote
View Public Profile Visit Mitch_40's homepage!
 
Old 03-23-2007, 02:03 AM Re: Extra padding in IE
Mitch_40's Avatar
Experienced Talker

Posts: 39
Name: Mitchell McLeod
Location: Tongala, Australia
Trades: 0
I think the 16px padding from the above div is causeing you to have extra padding.

Maybe try the code below?

Code:
#footer {
    background: #CCCCCC url(img/footer-bg.jpg) no-repeat top center;
    clear: both;
    padding-top: 0px;
    padding-bottom: 16px;
    padding-right: 16px;
    padding-left: 16px;
}
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Mitch_40 is offline
Reply With Quote
View Public Profile Visit Mitch_40's homepage!
 
Old 03-23-2007, 05:22 AM Re: Extra padding in IE
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
for testing purposes put a border around the suspect elements so you can see where each one "touches" the other.

Then you will be able to see whether it is margins or padding that is the issue.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2007, 02:04 PM Re: Extra padding in IE
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
for testing purposes put a border around the suspect elements so you can see where each one "touches" the other.

Then you will be able to see whether it is margins or padding that is the issue.
I actually went and installed Firebug... which I should have did long ago. Firebug shows that the footer div is doubling the 16px top padding to 32px. There is nothing else is my css that should be conflicting here. IE is just doubling the top padding for some reason.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 03-23-2007, 03:12 PM Re: Extra padding in IE
Junior Talker

Posts: 2
Name: Carol
Trades: 0
I test solutions before posting them. Did you try adding a 100% width declaration to your footer div?

HTH,
Carol
CKSF is offline
Reply With Quote
View Public Profile
 
Old 03-23-2007, 04:04 PM Re: Extra padding in IE
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by CKSF View Post
I test solutions before posting them. Did you try adding a 100% width declaration to your footer div?

HTH,
Carol
Yes I did try that. It screwed up my layout though because I had left and right padding... which made the div wider than 100%. I had to tweak padding and margins in that footer div and the paragraph inside to get it to look right. Thanks for the tip.
Tom_M is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Extra padding in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30310 seconds with 12 queries