WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > one more question (links for background)

Reply
  Thread Tools Display Modes
Old 4th February 07, 07:47 PM   #1
missruby
WLC Member
 
Join Date: Jan 2007
Location: ...new england...
Posts: 19
Default one more question (links for background)

uh oh...

is there a way to add a link to a css background image... i just realized that now my mast is a background image... (which is what i usually use as a link to get back to the home page... as i refuse to design sites with links that say "home")...
missruby is offline   Reply With Quote
Old 5th February 07, 11:56 PM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,194
Default Re: one more question (links for background)

Nope,

But the workaround is to put a link inside the element and make that <a> into a block element (display:block).
This makes the anchor element fill the height and width of the container.
chrishirst is offline   Reply With Quote
Old 10th February 07, 06:24 PM   #3
missruby
WLC Member
 
Join Date: Jan 2007
Location: ...new england...
Posts: 19
Default Re: one more question (links for background)

do you mean put an empty link inside the div...? because i tried that and it didn't seem to work...
missruby is offline   Reply With Quote
Old 10th February 07, 09:20 PM   #4
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,194
Default Re: one more question (links for background)

did you try setting the display to block ??

<div><a href="/" style="display:block" title="Home page"></a></div>
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resource Links Jen Graphics & Multimedia 11 9th September 13 02:26 PM
one more question... image link colors... missruby Browser Compatibility 13 2nd May 07 11:26 AM
Javascript Loading Question Scatropolis Scripting and Server Side 2 16th December 06 03:53 AM
Specific question about navigating through an xhtml/css layout... cailacqua Scripting and Server Side 1 30th November 06 06:18 AM
Making links clickable under PNG transparency? Paperbag CSS 5 16th July 06 10:42 PM


All times are GMT. The time now is 06:10 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.