July 29, 200818 yr 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!
July 29, 200818 yr 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.
July 29, 200818 yr <a href="http://www.homepage.com"><img src="path/to/filename.jpg" border="0" alt="Alt text here" /> Just to stop a little box appearing on some browsers
July 29, 200818 yr 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; }
July 29, 200818 yr 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; }
July 29, 200818 yr 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.
July 29, 200818 yr 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?
July 29, 200818 yr 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
July 29, 200818 yr 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; }
July 29, 200818 yr and just to add my 2p - don't forget the title tag: <a href="http://www.homepage.com"><img src="path/to/filename.jpg" title="Title text here" alt="Alt text here" />
Create an account or sign in to comment