Forum Moderators: not2easy

Message Too Old, No Replies

Mapping inside a css

         

Warcord

8:37 am on Feb 3, 2009 (gmt 0)

10+ Year Member



Hi.

I wondered if anyone know how to make a link inside a css code. I have a picture inside a css div tag, and want to make part of the picture into a tag. The code so far is as followed:

div#container {
margin: auto;
padding: 200px 0 0 0;
width: 700px;
min-height: 100%;
_height: 100%;
text-align: left;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
background: #fff url('/images/head.png') no-repeat top;
}

The picture I want to make into a partial link is the one that is in the background property.
Anyone know how to do this?

simonuk

8:51 am on Feb 3, 2009 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld!

You can't link a background image in the CSS. You'll need to either link its container or wrap it in an element that can be controlled to give the illusion of linking the image; A list item or paragraph tag for example.