Jump to content

Border around logo


usawh

Recommended Posts

  • 2 weeks later...

<a href="http://www.click4waikiki.com"><img alt="Click4Waikiki.Com" bgcolor="white" BORDERCOLOR="white" border="0" src="http://www.click4waikiki.com/logo-plain/logo.gif" /></a>

 

This is the code in question. The issue is not the image, but the link "<a>" that encompasses the element.

 

I don't know how you do this in html strictly, but in css you would do something like:

 

a img {

  border: none;

}

 

Please validate your html! You are using 3 body tags, lack a head and html tag, and you're missing a doctype! Failing to fixing these three issues will result in unwanted headaches.  ;)

Link to comment
https://forums.phpfreaks.com/topic/134473-border-around-logo/#findComment-715450
Share on other sites

Have you had any joy with this?

 

Just looking at the answers, To prevent images getting those blasted borders, I often set in my stylesheet, Thats one of the first things I do.

 

.img { border : none ; }

 

This would not work. ".img" is a class. To make this code work you need to add a class to all the iamges.

 

Maybe stublackett meant this:

 

img { border: none; }

 

If this is the case, this would work. HOWEVER, this assumes the website will never have images w/ borders. Therefore, by stating "a img { border: none; }" is the safest bet because only images that are links will not have a border.

 

There's always ways to work around something, but my solution is the simpliest to implement.

Link to comment
https://forums.phpfreaks.com/topic/134473-border-around-logo/#findComment-717005
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.