SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
-
Aug 24, 2004, 04:12 #1
- Join Date
- Aug 2004
- Location
- Taunton, UK
- Posts
- 787
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to make div with background image a link
Hi there
I am displaying the header of a site which includes the logo by setting the background of a div to an image.
http://www.lambandflag.co.uk
However I would like to make the header a link so that when clicked on, it will take the user back to the home page.
Not sure how to do this so any help would be appreciated.
Thanks
Paul
-
Aug 24, 2004, 04:56 #2
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
Hi,
Try this:
Code:#header h1 a {display:block;width:100%;height:100%;}
e.g.
Code:<div id=" topnav">
Code:<div id="topnav">
-
Aug 24, 2004, 05:31 #3
- Join Date
- Aug 2004
- Location
- Taunton, UK
- Posts
- 787
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Wicked thanks - that done the job just perfectly.
Thank you
Paul
-
Aug 26, 2004, 01:33 #4
- Join Date
- Aug 2004
- Location
- Taunton, UK
- Posts
- 787
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Eep I have noticed a problem with Firefox and Netscape in that there is a blue line now across the header
http://www.lambandflag.co.uk/
Any ideas how to fix this?
Thanks
Paul
-
Aug 26, 2004, 03:40 #5
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
Try this:
Code:#header h1 a {display:block;width:100%;height:100%;text-decoration:none;}
Bookmarks