Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-29-2012, 06:09 AM   PM User | #1
bingo105
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bingo105 is an unknown quantity at this point
Insert link to image

Hi.

I would like to know how is possible insert a link to an image, or edit the html or css code to get hypertext on the image?

I paste some code of my template, I really need some help to set up this hyperlink.


CSS:

Code:
#footer-upper-wrapper ul li input[type="submit"]:hover {
  float: left;
  background: url('../images/button.png') repeat-x;
  border: none;
  padding: 5px;
  margin-top: 5px;
  width: 73px;
  outline: none;
  margin-left: 7px;
  color: #fff;
  cursor: pointer;
HTML:

Code:
</div>
       <!-- Footer Upper Wrapper Ends -->
       <!-- Footer Lower Wrapper Starts --> 
       <div id="footer-lower-wrapper">                             
        <img src="images/triangle.png" id="triangle" alt="trinagle from twitter bird" />
        <form method="post">
          <input type="text" placeholder="info@email.com" name="contact" />
          <input type="submit" value="write-us" name="contactus"/>
        </form>

Regards
bingo105 is offline   Reply With Quote
Old 11-29-2012, 07:47 AM   PM User | #2
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
if i've understood you correctly, you would place the <img> in an <a>. So using your example, let's say you wanted a click on the image to go to google:
Code:
<a href="http://google.com"><img src="images/triangle.png" id="triangle" alt="trinagle from twitter bird" /></a>
backa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 09:56 PM.


Advertisement
Log in to turn off these ads.