Solved

Padding not working in IE

Posted on 2007-11-21
3
1,642 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
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 add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

756 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