Solved

Padding not working in IE

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article discusses four methods for overlaying images in a container on a web page
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 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…

758 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

20 Experts available now in Live!

Get 1:1 Help Now