In my code, I have the following setup:
<li>
<a class="dw"><span>Design Goals</span></a>
</li>
.dw {
background-image: url(/Content/images/icons/fugue/document-globe.png);
}
However, when I check this in my browser, it displays like this:
iii
iii xxxxxxxxxxxxxxx
iii xxxxxxxxxxxxxxx
The 'i's represent the image and the 'x's signify the text "Design goals".
I want to align the background image with the text. I've tried adjusting padding, margins, and line-height but so far nothing has worked. I also experimented with background-position: center but then the display looks like this:
iii
xxxxxxiiixxxxxx
xxxxxxxxxxxxxxx