![]() ![]() |
| richnlp |
Jun 10 2012, 11:33 PM
Post
#1
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
Hi, how can I make my header/logo a link to my homepage? Below is some sample code. The image I need to make into a link is in bold. Site: Chicago Web Design
image name: topBanner.jpg <body> <!-- top wrapper --> <div id="topWrapper"> <div id="topBannerWrapper"> <div id="topBanner"> <div id="hmenuWrapper"> <div id="hmenu"> <ul> <li id="current" style="border:none"> <a href="#" shape="rect">Home</a> </li> <li> <a href="#" shape="rect">Services</a> </li> |
| Frederiek |
Jun 11 2012, 02:14 AM
Post
#2
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,586 Joined: 23-August 06 From: Europe Member No.: 9 |
I don't think you want to link the entire topBanner DIV, just the logo. But since you used that as a background-image, you can't. Resize the image, to get rid of the empty space, and use the image as an inline element. Then you can turn it into a link.
-------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| richnlp |
Jun 15 2012, 02:28 AM
Post
#3
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
I don't think you want to link the entire topBanner DIV, just the logo. But since you used that as a background-image, you can't. Resize the image, to get rid of the empty space, and use the image as an inline element. Then you can turn it into a link. Thanks for the help. Can you instruct me on how to use the image as an inline element and then link it? Would you recommend even turning the logo into a link? As in, will it make a difference on search engines? |
| Darin McGrew |
Jun 15 2012, 06:39 AM
Post
#4
|
|
WDG Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Root Admin Posts: 7,869 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Please see the FAQ entry How do I link an image to something?
-------------------- Darin McGrew
WDG Member since 1998 |
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 11:18 AM |