Hide Alt Text

Hide alt text using CSS when the image is not present:

Html:

<img src="images/test.jpg" alt="alternative">

CSS:

img{
  text-indent:-9999px

}

Comments