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
Help with weird Gap in IE6
Old 12-22-2007, 05:52 PM Help with weird Gap in IE6
Junior Talker

Posts: 1
Trades: 0
Hello,
I'm working on my first website, and I have this 2-4px gap between my "#contentheader" and my "#content". This only happens in IE6.

Here is a Screenshot:
http://img403.imageshack.us/img403/3967/sscopyaf6.jpg

The site:
http://www.teamjive.com/portfolio/default.html
http://www.teamjive.com/portfolio/style.css

Any ideas?
Thanks for your help

Last edited by ceLL; 12-22-2007 at 06:01 PM..
ceLL is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-22-2007, 11:08 PM Re: Help with weird Gap in IE6
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
I don't have IE6, so I wasn't able to test it, but at the start of your Stylesheet just put this:

Code:
* {
margin: 0px;
padding: 0px;
}
and see if that works.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 12-23-2007, 07:57 AM Re: Help with weird Gap in IE6
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
remove the "white space" around the image element in "contentheader"

HTML Code:
<div  id=contentheader><img src="images/contentheader-home.jpg" alt="Home" /></div>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2007, 12:00 AM Re: Help with weird Gap in IE6
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
I'd stay away from asterisk hacks, too: Though they may work for IE6, IE7 not only doesn't support them but can sometimes do strange things with them.
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 12-24-2007, 11:28 AM Re: Help with weird Gap in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Actually, that's not a hack, in this case it's a 'wildcard' that means set margin and padding to zero for ALL elements, IE7 shouldn't have a problem with it.
__________________
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 12-24-2007, 01:46 PM Re: Help with weird Gap in IE6
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
LNR, please clarify this for me. When I last checked positioniseverything.net, they said that IE7 didn't support *html, the basis for the Holly hack. Does it actually support a general * "wildcard" element? I certainly don't want to pass on incorrect info. Would it not still be better to set the margin: 0; and padding: 0; on the body element?
__________________
SEO "experts" smell like Big Fish_|_
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 serandfae; 12-24-2007 at 01:50 PM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 12-26-2007, 03:46 PM Re: Help with weird Gap in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, *html is a hack, but the 'wildcard' is supported and works well. Just zeroing out the margins and padding on the body element only applies to <body>, you'd then have to zero out on all the other elements, like this:

h1, h2, h3, #wrapper, #content etc... {margin: 0; padding: 0;}
So using the wildcard * is an easier way of applying it to everything.
__________________
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 12-27-2007, 01:44 AM Re: Help with weird Gap in IE6
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
OK, that explains it. Thank you! I have encountered IE7 problems that I thought might be attributed to * by itself when used, but with all the things I have to do go get IE to behave it could just as easily have been something else. I have made a note of it.
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Help with weird Gap in IE6
 

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