I was referring a video tutorial where the designer used font: 0/0 a;
for image replacement, so I get that 0
is the font-size
, another 0
is the line-height
but designer skips the a
part just by saying that's an hack.
So what does that a
exactly do there?
The
a
is a font name, and of course it's very unlikely that anyone has a font by that name installed.It's just used to satisfy the CSS syntax, and what font the browser thinks it should use from that is not important, as it won't be used to show any text anyway.
If you use that on an image in order to get rid of spacing around the image, consider using
display:block
instead.http://nicolasgallagher.com/another-css-image-replacement-technique/