img padding not working in IE
-
Hi,
I am creating a free WP theme and I want to create a nice border for the images in the sidebar. Here’s the code:
#sidebar img { display: block; padding: 3px; background: #F5F4F3; border: 1px solid #E8E4E2; }
Unfortunately, padding is not working in IE6. That’s weird because I used the exact same code for a similar Web Template (only a HTML/CSS one) and there was no problem. For your information, Doctype is the same for both (
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
).Please, don’t tell me to put my image within a div to fix this problem. That’s not a suitable solution.
Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘img padding not working in IE’ is closed to new replies.