Forums
View unanswered posts | View active topics It is currently Thu Oct 23, 2014 10:31 am



Reply to topic  [ 3 posts ] 
 Image with background, border and shadows doesn't work. 
Author Message

Joined: Sun Jan 30, 2011 2:48 pm
Posts: 7
Post Image with background, border and shadows doesn't work.
Hi to all. I'm trying to make images with border, background and shadows. In all browsers all looks fine, except IE. I can't understand why my images looks weird. This is a css code for images:
Code:
img.myimage {
   background:#ddd none repeat scroll 0 0;
   border:1px solid #d8d8d8;
   margin:6px 3px 0 11px;
   padding:4px;
   position:relative;
   z-index:1;
}
img.myimage, img.myimage2, etc {
   border-radius:6px;
   -webkit-border-radius:6px;
   -moz-border-radius:6px;
   -moz-box-shadow:0 1px 3px #bbb;
   box-shadow:0 1px 3px #bbb;
   -webkit-shadow:0 1px 3px #bbb;
    behavior: url(PIE.php);
    zoom: 1;
}


Border-radius and shadows is typical for all my elements.
This is how they look in Firefox and IE.
Image

With other CSS3 elements on the site all is fine. Only with images I have problem at this time.

Thanks!


Mon Jan 31, 2011 4:50 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: Image with background, border and shadows doesn't work.
This may be a bug in PIE for images with padding. That's an edge case I don't think I tested for.

Are you able to replace the padding with a thicker border and get the same effect?


Mon Jan 31, 2011 7:28 pm
Profile

Joined: Sun Jan 30, 2011 2:48 pm
Posts: 7
Post Re: Image with background, border and shadows doesn't work.
Mmmm, I think it's much better and simple. )) I need a holiday! Thank you!


Mon Jan 31, 2011 7:48 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.