Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

IE/FF CSS Border Clash

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch

Harro

Established Member
Impact
1
So heres another Firefox, Interent Explorer clash thats giving me some problems.

I hav a div, a set number of pixels wide and high, and to this div I apply a 10px border. In FF the border is applied on the outside of the div, but in IE it is applied on the inside, effectively making the div 20px's slimmer and shorter.

Anyone know of any fixes or workarounds for this?
Thanks for any help.
Harro ;)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
<style type="text/css">
.class {
  width: 200px;
  border: 10px;
}
</style>
<!--[if IE]>
<style type="text/css">
.class {
  width: 220px;
}
</style>
<![endif]-->
 
0
Close
Thanks for that, I always forget about <!--[if IE]> :hehe:

Harro.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back