CSS: Change Button appearance on Hover?

Unfortunately :hover pseudo selector is not supported by IE6 on any other element than a.

Unfortunately :hover pseudo selector is not supported by IE6 on any other element than . If you wish to implement :hover on IE6, you can: a) If possible, change your to click me!. You will need to add display:block, and few other CSS rules.

This will simply 'simulate' button using tag. This is not perfect solution because sometimes you must use proper (i.e. When using asp.Net controls).

B) Use javascript to make workaround, example in jQuery is: c) Wrap your code like that: So you will be able to use CSS: . Acont:hover input { background:red; } This will do the job, but as far I remember this is not valid HTML ( should not be placed inside tag) Which one you gonna choose - up to you. Main point from this post is, again: :hover pseudo selector can be used on IE6 only on anchor elements.

Most of the time the rollover effect isn't important enough to me to bother with an IE6 compatible solution. But the OP did mention IE6 and I give you a +1 for addressing the issues around that. – Steve Wortham Nov 16 '09 at 19:59 thanks Steve.

I do think the same but we should still remember about IE6 because plenty of people are using it. Oh, and btw I edited my post so now there are three solutions. – rochal Nov 16 '09 at 20:00.

Have a look at pseudo-classes . BtnNewL1:hover{ background: url(../images/different. Png); }.

This SO question "How to use ‘hover’ in CSS" might help you. I think what you are looking for the :hover class. Here is an example at w3schools.

The example is for color, but I believe you can do this with other styles.

You want the :hover pseudo-class. Use . BtnNewL1:hover { ... } for your mouse-over styles.

See also the CSS2 spec for more info on pseudo-classes.

Combine the tw images into one and then change the background position. CSS sprite CSS Sprites: Image Slicing’s Kiss of Death.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions