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
Firefox vs IE7 issues
Old 03-19-2008, 07:59 PM Firefox vs IE7 issues
Junior Talker

Posts: 1
Trades: 0
Hi everyone,
Here's my site: www.plumdrama.com

In IE7 it looks great, but in FF the wrapper div doesn't extend around all the content like it's supposed to. I feel like I've tried everything to fix it, but i'm at a loss! It all started when i started trying to center the wrapper div on the page. If someone can please take a look and provide some guidance, i'd be eternally grateful! i'm thinking of buidling two style sheets (one for IE and the second for FF, as a fix..but that seems like it could get messy really fast)

Here's the CSS code for the wrapper div:
body {
margin: 0;
padding: 0;
background-color: #6bcde3;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 20px;
text-align: center;
}

#wrapper {
text-align: left;
background-color: white;
width: 770px;
padding: 8px;
margin: 0 auto;
}



thanks for reading,
-jim
jki540 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-19-2008, 08:27 PM Re: Firefox vs IE7 issues
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You're right about that, Jim. They can get messy.

The answer relates to floats in this case. If you use them, you need to clear them. For example, you should have a div after your hypernav div to clear it (some people use <br />, but I've always found the behavior of a <br /> clearing to be inconsistent.)
Code:
<div style="clear:  right;  height:  1px;  overflow:  hidden;"></div>
The other thing you can do is to create a "faux" background that's 770px x 1px, fill it white, and center it in your body tag:
Code:
body {
     background:  URL(../images/background-image.gif) top center repeat-y #6bcde3;
}
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-19-2008, 09:05 PM Re: Firefox vs IE7 issues
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yup, gotta clear those floats !
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
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
 
Reply     « Reply to Firefox vs IE7 issues
 

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