By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

Firefox extra bit of space

P: 74
hey,

my site that i'm developing basically has div's. a wrapper and container div to add the side decoration and within this i look like this:

-------------------header---------------------
-----------main-content--------------------
| |
| |
| |
| |
------------------------------------------------
-------------------footer---------------------

the header and footer mainly provide decoration.

when i put stuff n the main-content div. when view in firefox i get a gap between the top of the div and the content. it doesnt matter where this is text or images. the gap is there. the gap is not there in IE. can anyone explain whythis could be? It is a simple CSS/HTML site.

cheer
phileep
Mar 7 '07 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
It depends on how it's marked up with positioning which would indicate one of many IE bugs. But sometimes this happens depending on what default margins and padding are used by different browsers. Most of us set all margins/padding to zero in css and then set each element to what we want to avoid such problems.
Mar 7 '07 #2

Expert 100+
P: 1,892
hey,

my site that i'm developing basically has div's. a wrapper and container div to add the side decoration and within this i look like this:

-------------------header---------------------
-----------main-content--------------------
| |
| |
| |
| |
------------------------------------------------
-------------------footer---------------------

the header and footer mainly provide decoration.

when i put stuff n the main-content div. when view in firefox i get a gap between the top of the div and the content. it doesnt matter where this is text or images. the gap is there. the gap is not there in IE. can anyone explain whythis could be? It is a simple CSS/HTML site.

cheer
phileep
Post the code you're using.
Mar 7 '07 #3

P: 74
It depends on how it's marked up with positioning which would indicate one of many IE bugs. But sometimes this happens depending on what default margins and padding are used by different browsers. Most of us set all margins/padding to zero in css and then set each element to what we want to avoid such problems.
flipping awesome man - bit of a school boy error on my case thanks for the advice.
Mar 8 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.