Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Redundant icons? Re: Redundant icons?

#60330
TheDoc
Member

To make the code even better, you should take on Apostrophe’s suggestion about the text indenting. Your HTML would look perfect with:

Code:

You would simply add this line into your CSS:

Code:
a.youtube {
display: block;
float: left;
margin-left: 10px;
margin-top: 8px;
border: 1px solid #fff;
width: 40px;
height: 40px;
background: transparent url(../images/youtubeSD.png) no-repeat;
overflow: hidden;
text-indent: -9999px; /* ADD THIS LINE */
}