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
No wayyyyy another IE CSS problem!
Old 08-07-2007, 05:06 PM No wayyyyy another IE CSS problem!
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Can't understand whats going on, I'm pretty used to making horizontal lists and this hasn't happened before!

In IE6, the list has too much of a top margin [even though it's set to 0], stopping it from aligning with the surrounding images.

Here's my code if anyone can help!

CSS:

/*STYLE'S///////////////////////////////////////////*/
body {margin:0;padding:0;font-family:Arial, Helvetica, sans-serif;font-size:10px;}
a {color:#F0F0F0;}
a:hover {color:#FFF;}

/*DIV'S///////////////////////////////////////////*/
#container {width:720px;float:right;}
#banner {background-image:url(../Images/banner.jpg);height:253px;}
#swirl {background:url(../Images/swirl.jpg) 0 0 no-repeat;padding-left:30px;}
#content {width:100%;clear:left;padding:0;}
#footer {clear:left;height:40px;background-image:url(../Images/bg_bottom.jpg);}

/*LIST'S///////////////////////////////////////////*/
#nav {background:url(../Images/nav_ul.jpg) 0 0 repeat-x;padding:0;margin:0;
list-style-type:none;width:100%;float:left;}
#nav li {display:inline;}
#nav a {display:block;float:left;padding:8px 25px 12px 3px;background:url(../Images/nav_a.jpg)
100% 0 no-repeat;font-weight:bold;text-decoration:none;}

HTML:
Code:
<div id="container">
<div id="banner"></div>
<div id="swirl">
<div id="content"></div>
<ul id="nav">
<li><a href="#">HOME</a></li>
<li><a href="#">PORTFOLIO</a></li>
<li><a href="#">PRICE GUIDE </a></li>
<li><a href="#">CONTACT</a></li>
</ul>
<div id="div">Content for id &quot;content&quot; Goes Here</div>
</div>
<div id="footer">&nbsp;</div>
</div>
__________________

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


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


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

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 08-07-2007, 05:38 PM Re: No wayyyyy another IE CSS problem!
bas
Super Talker

Posts: 108
Name: Bas
Trades: 0
Isn’t it just your #content div who causes the different “top-margin”?


In Firefox the content-div is flat in the height, but in IE (6 and 7) it’s not. (and I don’t think you can get it flat in all browsers, except with display:none; or removing the element)


If this is not where you were searching for, or if you want more help with this, you maybe can give us your full code, then it’s probably a lot easier to help you.
bas is offline
Reply With Quote
View Public Profile
 
Old 08-07-2007, 06:28 PM Re: No wayyyyy another IE CSS problem!
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Hmmm I've tried adding:

margin:0;

to #content, but it doesn't fix the problem. I didn't specify a margin for it in the first place so I didn't think that would be the problem.

Also, that's all of the code at the moment! Well, except for the head and body tags, which I didnt really think were necesarry.

Thats why Im so confused as the page hardly has any code and already I've ran into several problems!
__________________

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


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


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

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 08-08-2007, 05:08 AM Re: No wayyyyy another IE CSS problem!
bas
Super Talker

Posts: 108
Name: Bas
Trades: 0
Quote:
Hmmm I've tried adding:
margin:0;
to #content, but it doesn't fix the problem.

Of course not, #content has no margin, but what I say is: the #content has a HEIGHT in some browsers.


Give your #content a temporary border and view in IE, so you can see what I mean.
bas is offline
Reply With Quote
View Public Profile
 
Old 08-08-2007, 07:52 AM Re: No wayyyyy another IE CSS problem!
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Ahhhh good idea Ive fixed it now thanks.

Turns out there was some extra code in there that I'd missed! [and wasn't even in the sample i typed in here for some reason].

Duno how the hell it got in there!
__________________

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


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


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

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 08-11-2007, 02:02 AM Re: No wayyyyy another IE CSS problem!
Experienced Talker

Posts: 49
Trades: 0
lol the day i.e doesn't cause a problem, i'll friggin die
Cyrus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to No wayyyyy another IE CSS problem!
 

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