Welcome

This is a blog maintained by Kabindra Bakey. This blog can contains posts related to css. Here you can find some simple stuffs which may help you for better working using css. If you have any queries and suggestions regarding my posts then you can mail me KoolKabin@live.com.

Thank you,
KoolKabin

Thursday, March 26, 2009

:hover not working in IE

Previously we have to use csshover.htc file in IE for making the css selector ":hover" work. But now it can simply tweak its use by defining the doctype like the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

intead of normal:
<html>

This simple tweak helps us making the :hover selector work in IE even.

No comments:

Post a Comment