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

Home Forums CSS Redundant icons? Re: Redundant icons?


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


You would simply add this line into your CSS:

Code: {
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 */