Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.