Jump to content

border AFTER padding


Recommended Posts

I've got this CSS-code:.picture { /* IE */ border: 1px solid #B3DD3D; padding: 5px;}html>body .picture { /* FF */ border: 1px solid #B3DD3D; padding: 5px;}The first class is voor Internet Explorer, the second one for FireFox. They're the same at the moment but the first class (for IE) doesn't work the way I want it to work. The second one does. So, the class works fine in firefox but not in internet explorer...What do I have to change for the first one working well in Internet Explorer?So my goal is to have first whitespace around a picture (padding) and after that a border of 1 px...

Link to post
Share on other sites

IE6 has support for CSS2(it's not full but it does support the selector ">" though). If you want to make something specifically for IE you must add a * before the property. Example:

.picture {border: 1px solid #B3DD3D; /* FF */*border: -whatever-border-you-think-it's-needed-; /* IE */padding: 5px;*padding: -whatever-padding-you-think-it's-needed-;}

Link to post
Share on other sites
IE6 has support for CSS2(it's not full but it does support the selector ">" though). If you want to make something specifically for IE you must add a * before the property.
thanks for the tip, but that's not my probleem.The probleem is that the padding-style won't work in Internet Explorer...Is there a solution for this?
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...