The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> HTML Programming
|
Tools - Web Design, no border on image hyperlink
Discuss Web Design, no border on image hyperlink in the HTML Programming forum on Dev Shed. Web Design, no border on image hyperlink HTML Programming forum covering discussions of HTML and XHTML, as well as HTML-related issues such as writing W3C Compliant code. Use HyperText Markup Language for building websites.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 20th, 2012, 04:25 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 2
Time spent in forums: 6 m
Reputation Power: 0
|
|
|
Tools - Web Design, no border on image hyperlink
I just started a website recently, and am having a few design issues. I wanted to make the header image a link back to the homepage, but now there is a border around it. I tried using 'style="border:none;" ' and so forth, but that hasn't helped.
my website is runningcobra.com if anyone would like to take a look and give some advice, I'd really appreciate it!
Thanks!
|

September 20th, 2012, 04:39 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 3
Time spent in forums: 44 m 7 sec
Reputation Power: 0
|
|
|
Which browser are you using where you see the border around the header image? I'm using Firefox 15 (latest version as of 9/20/12) and I'm not seeing it.
|

September 20th, 2012, 05:21 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 2
Time spent in forums: 6 m
Reputation Power: 0
|
|
|
internet explorer
|

September 20th, 2012, 05:41 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 3
Time spent in forums: 44 m 7 sec
Reputation Power: 0
|
|
|
I'm using IE8 and I'm not seeing a border. Can you provide a screenshot?
|

September 20th, 2012, 08:51 PM
|
|
|
in your main css file just put
|

September 20th, 2012, 10:07 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
Quote: | Originally Posted by jack13580 in your main css file just put |
That's close, but not quite right. For the border property, there's no valid value of 0. It has to be set as 'none' so it would be
Code:
img {
border: none;
}
If you want to do it on images inside links only (where the main problems occur), it would be
Code:
a img {
border: none;
}
|

September 21st, 2012, 12:00 AM
|
 |
CSS & JS/DOM Adept
|
|
Join Date: Jul 2004
Location: USA
|
|
Quote: | Originally Posted by Catacaustic For the border property, there's no valid value of 0. |
Eh? "border: 0" is valid. And so is "border: none". Though I prefer to use "border: 0 none" myself, because an old version of Opera needed both (if I remember correctly).
You're correct about the "a img" selector though. 
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|