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
DIV Displays Different in IE
Old 07-03-2008, 01:52 PM DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
I have a DIV which is acts as a footer background below a container and when i set the top margin on it so it positions how i want, it displays okay in firefox but in IE the div appears to be lower, does anybody know a fix for this

here are the CSS elements i have used in the style

#fbg{
height: 45px;
background-repeat:no-repeat;
background-color: #0099ff;
margin-top: 25px;
}


FF
http://img516.imageshack.us/img516/4479/firefoxfy0.jpg

IE
http://img337.imageshack.us/img337/5048/ie7an8.jpg
Whytey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-03-2008, 02:15 PM Re: DIV Displays Different in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Can we see the rest of the code ? Hard to say what the solution is w/o seeing 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 07-03-2008, 02:49 PM Re: DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
Is it necessary to post the entire style/html?
Whytey is offline
Reply With Quote
View Public Profile
 
Old 07-03-2008, 02:56 PM Re: DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
<!-- these are the last 2 divs inside the container -->

Code:
<div class="clearfix" id="footmenu" >
<ul>
<li><a href="#">home</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">designs</a></li>
<li><a href="#">sitemap</a></li>
<li><a href="#">contact us</a></li>
</ul>
  </div>
</div>

<div id="fbg">
<p class="fbgtext">&nbsp;</p>
</div>
</body>
</html>
Code:
#footmenu{
    height:43px;
    background-color:#EAEAEA;
    clear:both;
    float: right;
    width: 755px;
    text-decoration: none;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D3D3D3;
    position: relative;
 }
 
#fbg{
    height: 45px;
    width:auto;
    margin:0;
    padding:0;
    background-color: #0099ff;
    margin-top: 25px;
    float: none;
}

Last edited by Whytey; 07-03-2008 at 02:57 PM..
Whytey is offline
Reply With Quote
View Public Profile
 
Old 07-03-2008, 03:15 PM Re: DIV Displays Different in IE
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
A link to the page would do.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-03-2008, 03:32 PM Re: DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
I've not uploaded the site anywhere as its not finished, but i've posted screenshots of how it looks in ff and ie

FF
http://img516.imageshack.us/img516/4479/firefoxfy0.jpg

IE
http://img337.imageshack.us/img337/5048/ie7an8.jpg
Whytey is offline
Reply With Quote
View Public Profile
 
Old 07-04-2008, 07:52 AM Re: DIV Displays Different in IE
tehfincheh's Avatar
Super Talker

Posts: 147
Name: Martin
Location: London, England
Trades: 1
Code:
<div class="clearfix" id="footmenu" >
<ul>
<li><a href="#">home</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">designs</a></li>
<li><a href="#">sitemap</a></li>
<li><a href="#">contact us</a></li>
</ul>
  </div>
</div>
What is the second div closing?
__________________

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


Please login or register to view this content. Registration is FREE
tehfincheh is offline
Reply With Quote
View Public Profile Visit tehfincheh's homepage!
 
Old 07-04-2008, 01:07 PM Re: DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
i just realised #fbg is below the bottom link menu, so the second div closing is the container
Whytey is offline
Reply With Quote
View Public Profile
 
Old 07-06-2008, 03:49 PM Re: DIV Displays Different in IE
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
Trades: 0
anyone know a possible fix for this?
Whytey is offline
Reply With Quote
View Public Profile
 
Old 07-06-2008, 05:51 PM Re: DIV Displays Different in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Like I said before, all of the code really IS necessary get the whole picture of what's going on.
__________________
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 07-09-2008, 12:39 AM Re: DIV Displays Different in IE
Average Talker

Posts: 19
Trades: 0
I would run a check on your markup at W3C (http://validator.w3.org/) including the CSS validator (http://jigsaw.w3.org/css-validator/)

As posted previously, without the full code, anything's possible. Firefox and IE don't handle invalid markups the same way.
Johnnie Walker is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to DIV Displays Different 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.75348 seconds with 12 queries