I don't get what's the point of doing that , why not just use an image as a link?
On 4/6/09, Christopher R <[email protected]> wrote: > I was reading up on how to create links from background images, so I came > across this page > which mentions the following: > http://www.attackr.com/css-trick-turning-a-background-image-into-a-clickable-link/ > Simple enough one thought, I applied it like so to my code: > > HTML: > > <span id="logomiddle"><a href="www.cokecola.com"></a></span> /* coka cola is > just a test URL */ > > CSS: > > #logomiddle { > display: block; > background: url(header-web-page-graphic-done3_01.png) no-repeat top > center; > display: block; > position: absolute; > left: -490px; > top: -150px; > height: 1150px; > width: 960px; > z-index: 1; > } > > I added display: block as it mentions but there is some mentioning of > positioning that has gotten me lost. > > > ______________________________________________________________________ > css-discuss [[email protected]] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- Krystian Szastok Affordable, Freelance Web Designer in Eastbourne, East Sussex: http://eastbournewebdesign.net Mobile UK (Orange): 07528 036 337 Call for more information or email me. ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
