Solved

Padding not working in IE

Posted on 2007-11-21
3
1,645 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
[X]
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
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Style Effect 2 22
Change static entered data to dynamic with counter 5 50
email validation 9 61
bootstrap form validations! 1 37
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

738 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