Menu DaniWeb
Log In Sign Up
  • Read
  • Contribute
  • Meet
  1. Home
  2. Digital Media Forum
  3. UI / UX Design Forum
  4. Code Snippet Repository
  5. Reusable Code Snippet

Set an image as a link

20 Years Ago helloadam 0 Tallied Votes 207 Views Share

This snippet shows you how to add set an image as a link.

1) In the snippet find

<a href="IMAGE URL WHEN CLICKED">

and change Image Url when clicked to your liking.
2) Then find

<img border="0" src="URL OF IMAGE " width="65" height="38">

edit Url Of Imge to your liking.
3) If all went well you are done!

web-design
<a href="IMAGE URL WHEN CLICKED">
<img border="0" src="URL OF IMAGE " width="65" height="38">
</a>
About the Author
Member Avatar for helloadam
helloadam 0 Light Poster

meh nothing yet...

Member Avatar for Dani Last Seen 22 Minutes Ago
Dani 4,612 The Queen of DaniWeb Administrator Featured Poster Premium Member
20 Years Ago

Why are you setting the width and height of the image to 65x38 pixels in size?

Member Avatar for helloadam
helloadam 0 Light Poster
20 Years Ago

Oops!

Member Avatar for tuputips
tuputips 0 Newbie Poster
17 Years Ago

I Don't Like That Red Lines Around My Picture In IE 6. What About Mozilla!!?

Member Avatar for uringinteristi
uringinteristi 0 Newbie Poster
16 Years Ago

thank you your for your code

Member Avatar for uringinteristi
uringinteristi 0 Newbie Poster
16 Years Ago

how to make snip code to drop my link URL with normal word?

Reply to this topic
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.

Sign Up — It's Free!
Related Topics
  • Member Avatar HTML/PHP alternative to Java's JList 2
  • Member Avatar Txt file based tool tip 3
  • Member Avatar Floating Menus: I have a problem, can you help me figure it out? 6
  • Member Avatar Next/Previous Navigation 7
  • Member Avatar HTML: can anyone see the problem here? 4
  • Member Avatar New to the forum, huge question? 4
  • Member Avatar Advanced Table Attributes/Trapezium in Html 3
  • Member Avatar Jump to another part of a document (on the same page) 11
  • Member Avatar PayPal IPN for Digital Goods 35
  • Member Avatar Which One To Opt For? UI or UX -You’re Asking the Wrong Question! 0
  • Member Avatar Bad CSS only for Firefox & Internet Explorer. 1
  • Member Avatar Safari date input 4
  • Member Avatar how to make border around page with multicolor ? 2
  • Member Avatar Positioning Switch on Validate Error 1
  • Member Avatar Mobile version of site is shifting DIV downward. Any fix? 1
  • Member Avatar CSS ERROR? 3
  • Member Avatar Browers show code instead of the page itself 3
  • Member Avatar Image behind text 4
  • Member Avatar How to design like this picture 9
  • Member Avatar How do i stack backgrounds on top of each other ? 4
Not what you need?

Reach out to all the awesome people in our ui / ux design community by starting your own topic. We equally welcome both specific questions as well as open-ended discussions.

Start New Topic
Topics Feed
Reply to this Topic
Edit Preview

Share Post

Insert Code Block

  • Forums
  • Forum Index
  • Hardware/Software
    • Recommended Topics
  • Programming
    • Recommended Topics
  • Digital Media
    • Recommended Topics
  • Community Center
    • Recommended Topics
  • Latest Content
  • Newest Topics
  • Latest Topics
  • Latest Posts
  • Latest Comments
  • Top Tags
  • Topics Feed
  • Social
  • Top Members
  • Meet People
  • Community Functions
  • DaniWeb Premium
  • Newsletter Archive
  • Markdown Syntax
  • Community Rules
  • Developer APIs
  • Connect API
  • Forum API Docs
  • Tools
  • SEO Backlink Checker
  • Legal
  • Terms of Service
  • Privacy Policy
  • FAQ
  • About Us
  • Advertise
  • Contact Us
© 2025 DaniWeb® LLC