NameSilo

Problem with margins in Firefox

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

RichardAFCB

Established Member
Impact
0
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It always works fine for me in Firefox um..........
 
0
Close
It would help if your source was nicely formatted so we could see how all your <div> tags line up. Try some tabs and indents.

Without looking too hard (due to the formatting problem), maybe the problem is your line-height in the body tag. line-height ignores margin settings:

From the spec:
"Note that any padding, border or margin above and below non-replaced inline elements does not influence the height of the line. In other words: if the 'line-height' is too small for the chosen padding or border, it will overlap with text on other lines."

That may be off base though for your current problem.


Another possibility is your are trusting IE. Don't. IE is wrong. FireFox is right (at least more often). IE includes padding and border sizes in its application of the "width" element. This is counter to the spec. FF is correct. This also applies to the height element. So if your vertical alignment is off check that you are not using top padding and top borders. Margins work fine in IE as far as I know.

If you still can't find the problem, fix your formatting and I'll look at it harder. My website also has a how-to page describing how to align DIV sections so they are consistent between IE and FF.

Good luck.
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back