|
|
|
#1 (permalink) | |||||||||||||
|
4.0 GHz
![]() |
i have an image that i put on the front page of my website, i already div tagged it and it displays exactly how and where i want it but i want to make it so that when you click on this image it will go to a specified link is it possible to do that in the css file here is the code so far:
Code:
#play{
position:absolute;
left:875px;
top:25px;
margin-right: 20px;
margin-top: 20px;
height: 150px;
width: 150px;
background-image: url(images/play.PNG);
}
__________________
3
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Overclocking Addict
![]() |
You would have to make an image button I believe. Then make the navigate URL whatever you want. Then you should be able to edit the button tag to use the "#play" class and that should transfer the formatting to the image button.
...I think
__________________
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
4.0 GHz
![]() |
i figured it out this is what i did in the source file only and it worked perfectly:
Code:
<div id="play"><a href="http://sc3.soundcast.pl:8232/listen.pls"><img src="images/play.png" width="150" height="150" border="0" /></a></div>
__________________
3
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Audiophile
|
You couldn't link it before because it was the background image. Make sure you use good descriptive alt tags with keywords (where appropriate) in the code for SEO purposes.
__________________
It's O.C. ROUND 2 for THE FOUNDRY !!1 CPU 3DMark06 Score - 4563
Total 3Mark06 Score - 13906
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | ||||||||||||||
|
Audiophile
|
Quote:
I like it though for reducing the code. BUT, what about the keyword rich image alt tags? They would not be on the page, just the link anchor text.
__________________
It's O.C. ROUND 2 for THE FOUNDRY !!1 CPU 3DMark06 Score - 4563
Total 3Mark06 Score - 13906
|
||||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|