Forums

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

Home Forums CSS [Solved] Background Image Anchor Re: [Solved] Background Image Anchor

#71427
TheDoc
Member

First things first: you shouldn’t have an anchor tag wrapping around a div, not only will this not validated, it will also cause problems like the one you are dealing with.

I would do something like this:

Code:
a#logo {
display: block;
width: ; /* up to the search box */
height: ; /* height of header */
text-indent: -9999px;
}

You may need to work in some absolute positioning to get it to sit properly, but that’s what I do for nearly every project.