Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Blue boxes around my linked pictures

Posted on 2009-07-03
6
Medium Priority
?
242 Views
Last Modified: 2013-11-19
On some of my images that I use as links a blue border is created around the image. How do I remove this? What is causing this?

An example is the Play Football logo at the bottom of  this page:

http://www.ohioflagfootball.com/index.asp

Thanks.
0
Comment
Question by:elliottbenzle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Accepted Solution

by:
Tempelman earned 2000 total points
ID: 24770945
Add border="0" to the hyperlink.... By default HTML will create that ugly blue border when you use a picture as a URL ;).
0
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 24770995
To add on to previous experts comments,

write the css for img and anchor in a generic fashion to remove the borders. Add below to ur application CSS file.

a{
    border:0;
}

img{
  border:0;
}


In case of altering border for certain images .. you can use css class


.imgNoBorder{
  border:0;
}

.imgBorder{
  border:2px;
}

<img src="a.jpg' class="imgNoBorder"/>

<img src="b.jpg' class="imgBorder"/>

-Murali*


-Murali*
0
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 24771005
Oops missed ur fix part.To fix the image border that  you mentioned you need to add border="0" for img tag. Below would fix ur current problem

<img height="152" width="250" src="images/widget_play_football_250x152.gif" border="0"/>

-Murali*
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Expert Comment

by:ibs06t
ID: 24771290
when ever we give hyperlink link to image tag that border will appear
if u need to remove border to entire website

img
{
border:0px;
}

otherwise  u want remove a specific image
<img src="images/Newgif" alt="New Image" style="border:0px;" />

img
{
border:0px;
}
 
<img src="images/Newgif" alt="New Image" style="border:0px;" />

Open in new window

0
 
LVL 15

Expert Comment

by:deepaknet
ID: 24771710
Just append border=0 for your img tag.

Whenever an image is made to serve as a hyperlink, this happens.
0
 
LVL 4

Author Closing Comment

by:elliottbenzle
ID: 31599498
Thanks.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question