Padding not working in IE

Posted on 2007-11-21
Last Modified: 2010-05-04
I am using images in css span and giving the border padding which is perfectly working in FF but not woking in IE plz check it,

complete CSS Code is here,


position: relative;

z-index: 1;


.thumbnail img {


    border:1px solid  #CCCCCC;



background-color: transparent;

z-index: 2;



.thumbnail span{ /*CSS for enlarged image*/

position: absolute;

background-color: white;

left: -500px;

border: 1px #C3D6EE solid;

visibility: hidden;

color: black;

text-decoration: none;


.thumbnail span img{ /*CSS for enlarged image*/


border:1px solid #000;

border-color: #CCCCCC;


.thumbnail:hover span{ /*CSS for enlarged image on hover*/

visibility: visible;

padding: 3px;

width: 200px;

height: 0 auto;

left: -10px;

 /*position where enlarged image should offset horizontally */


Open in new window

Question by:jawadashraf78
LVL 13

Accepted Solution

R7AF earned 250 total points
ID: 20326677
Do not apply width and padding to the same element.

Expert Comment

ID: 22278292

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now