Click to See Complete Forum and Search --> : Division link+image
polanecky
12-16-2008, 06:16 PM
Hi,
In the first place I am wondering if I can hyperlink a division in CSS..? And how can I put a linked picture in html, I did this
<a href="home">burek<img src="site-name.png"></a> and the only thing it displays is burek. ...
Kyrik
12-16-2008, 06:28 PM
Try using this:
<a href="index.html"><img src="image_name.png"></a>
I changed "home" to index.html for two reasons:
1.) Home is NOT called home, it is called index, and
2.) you are suppose to add the suffix at the end (e.g. .htm, .html, .php, etc.)
So if you had a page called "downloads.html" and you want to link to it, you have to use downloads.html...not just downloads. Get what I'm saying? And what exactly do you mean linking a div? Give me a site as an example, so I can see it. Maybe I can help you out if I can see exactly what you mean.
Hope I helped. :)
polanecky
12-16-2008, 07:07 PM
Thanks for your help. I figured it out what was the problem. php file I was editing searched for my image in some other folder...
yeah I know that's wrong, I was planning to change that in the future because now I'm just designing a theme for drupal...
It's probably not possible to make a division a hyperlink area especially with CSS? Wright?
thanks again
Kyrik
12-16-2008, 07:14 PM
Well again it depends on what exactly you want. Do you want the link to send you to that specific div (e.g. the person clicks on the link and it sends them to the specified div), or do you want it set up to where the entire division is a link (when the user clicks on the div it will send them to the specified URL)?