Hi.
I'm trying to create a stylesheet for a page that shows images instead of
text links. I tried to apply the FIR method but apparently that only works
for block-level elements.
Used HTML:
<a href="link.html"><div class="image"><span>text</span></div></a>
Used CSS:
..image {
width: 48px;
height: 48px;
background-image: url(48x48.png);
display: inline;
}
..image span {
display: none;
}
The text in the span element is not shown but neither is the background
image. In addition to that the width and height properties seem to be
ignored.
I also tried moving the css properties into the a element, using span
instead of div, using the id attribute but none of that works the way I
would expect it to.
Am I missing something fundamental here? (Accessibility is not an issue here
as the page will be centered around images so blind people simply do not
belong to the target group. :)
Thanks for help,
David