Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

images for links

Featured Replies

Hi,

 

can someone tell me how to make a .jpg image a link to another homepage and a .jpg to an email link?

 

I use DW!

 

Thx!

No problem.

 

Homepage link:

 

<a href="http://www.homepage.com"><img src="path/to/filename.jpg" alt="Alt text here" /></a>

 

Email Link:

 

<a href="mailto:you@site.com"><img src="path/to/filename.jpg" alt="Mail Me" /></a>

 

Hope that helps.

Instead of always adding the border="0" you can just ad an entry in the css:

 

img {
border: 0;
}

 

EDIT: I think it won't validate like that though...so you can do:

 

img {
border:none;
}

Border is a styling issue and as such should be confined to a stylesheet and not form part of the HTML.

 

the CSS would be:

 

img{
border:0;
}

Border is a styling issue and as such should be confined to a stylesheet and not form part of the HTML.

 

the CSS would be:

 

img{
border:0;
}

 

Thank you it is true you learn something new each day. :D

  • Author

thx guys,

 

btw, I use som rollover images for links between my sites, and when you press those links, a little border appears, but dissapears again when the new page is loaded. Is there any way to remove that border?

is this a dotted border? Add

 

outline:none;

 

to your css

  • Author

hey shubox,

 

yeah they are little dottot borders that surrounds the imagelinks I have. Where should I add outline:none; ? In the #wrappers where the imagelinks are or just in the general CSS? Could you give me an example? :)

 

Thx m8

the border appears because the image is a link - so you apply the outline rule to your a element. You can target it more specifically using a img

a img{
outline:none;
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.