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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
IE8 adding spacing to div?
Old 12-31-2009, 10:42 AM IE8 adding spacing to div?
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I'm a little confused by this one. The affiliates div is adding spacing, doubling the height in IE8 (NetRenderer IE7 is down, so I can't check that). If I remove the code inside the affiliates div it acts normally. Anyone have a clue?

http://triplemoonsdesign.com/MEDIAMO...ITTERGOLDMINE/

Code:
div#affiliates {
    width: 990px;
    height: 104px;
    background: url(images/affiliates.png);
}
HTML Code:
<div id="affiliates">
    
        <a href="#" style="float: right; padding-right: 80px; padding-top: 45px;">info@twittergoldmine.com</a><a href="affiliates.html" ><img src="http://www.webmaster-talk.com/images/affiliates-trans.gif" alt="affiliates" width="400px" height="90px" /></a>
    
</div>
__________________

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


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

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
 
Register now for full access!
Old 01-02-2010, 12:54 PM Re: IE8 adding spacing to div?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Well, the total height is 90+45px of padding which = 135px, not 104.
You also have invalid "px" on the dimensions of your <img> tag and an unclosed <a> around the image itself.

You're using the <center> tag?? Really?? The easiest way to center an image like that is like this - create a class, apply it to the img tag:

Quote:
.imgBlock{display:block; margin: xx auto;}
Call the class whatever you like, but this easily centers any image w/o the need for that ugly, deprecated <center> tag.

Fix the errors, and see what happens.
__________________
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 01-02-2010, 08:12 PM Re: IE8 adding spacing to div?
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I actually already fixed this, same day I made the post.

And yes, I have to use wrapped center tags. It's a request of the client I create these for. Not my call. You should see what he does to my code when he puts his content into them!
__________________

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


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

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 01-03-2010, 06:14 PM Re: IE8 adding spacing to div?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
I have to use wrapped center tags.
Oh boy.... that would drive me crazy...
__________________
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 01-03-2010, 06:43 PM Re: IE8 adding spacing to div?
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Oh boy.... that would drive me crazy...
Meh. Client gets what the clients wants.
__________________

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


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

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Reply     « Reply to IE8 adding spacing to div?
 

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.27564 seconds with 12 queries