CSS Image padding IE problem
- Started
- Last post
- 11 Responses
- mobius
Help.
I'm trying to put some padding around an image & ive defined a class in css
.pic {
border: 1px solid #ccc;
padding: 5px;
background: #fff;
}it works fine in firefox, but the padding doesnt seem to show in IE.
does anyone know how to solve this?
- ganon0
what v. of IE, mac or PC
- mobius0
IE6 on winXP.
- mobius0
*BUMP*
- ganon0
should be ok, why dont you upload it and post the url....
- blackspade0
post the url
instead of using CSS for the image padding
why dont u just use good ol trusty" hspace="10" vspace="10"
in the html
- heavyt0
here is how it is done:
you need to ace the class, use an id instead, and apply padding to IMG
#pic IMG{
padding:5px;
}
that is a cross browser solution.
do it. do it.
TR1
- mobius0
http://www.geocities.com/zeromob…
works in firefox but not in IE6 on XP.
- mobius0
heavyt
#pic IMG {
border: 1px solid #ccc;
padding: 5px;
background: #fff;
}doesnt work on either browser :I
- mobius0
< img src="bruiselee.gif" id="pic" >
- mobius0
solved.
- heavyt0
told you so.
jeezcan i get a "thank you" ???
TR1