Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Padding not working in IE

Posted on 2007-11-21
3
1,641 Views
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,
----<.thumbnail{
position: relative;
z-index: 1;
}
 
.thumbnail img {
    padding:5px; 
    border:1px solid  #CCCCCC;
 }
 
.thumbnail:hover{
background-color: transparent;
z-index: 2;
text-decoration:none;
}
 
.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*/
padding:5px; 
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

0
Comment
Question by:jawadashraf78
3 Comments
 
LVL 13

Accepted Solution

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

Expert Comment

by:rohypnol
ID: 22278292
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A simple Float not working. 5 25
<div class="clearfix"></div> not working on home slider 5 20
Media Queries  not Firing 6 19
CSS Style Effect 2 10
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

829 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