Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How remove border around image in css?

Tags:

html

css

I try to display a span when the cursor of the mouse is on a help icon.

It works, but nevertheless, I don't manage to remove the border around the icon.

My CSS :

.info{     position:absolute;     border:none; }  a.info{     position:absolute;      z-index:24;      background:none;     color:#000;     text-decoration:none }  a.info:hover{     z-index:25;      background-color:#FFF;     cursor:help; }  a.info span{     display: none }  a.info:hover span{      display:block;      position:absolute;     cursor:help;     bottom:0px;      left:26px;      width:150px;     padding:4px; } 

cd

like image 698
bahamut100 Avatar asked Jan 28 '10 09:01

bahamut100


People also ask

How can I remove border in CSS?

We can specify the no border property using CSS border: none, border-width : 0, border : 0 properties. Approach 1: We will give border-color, border-style properties to both headings, for showing text with border and no-border. For no border heading, we will use the border-width : 0 which will result in no border.

How do you make a border invisible in CSS?

To make an invisible border, set the BORDER attribute to 0.


1 Answers

Another thing - remember that if you have an with an empty src attribute, then none of these suggestions will work, a border will still get shown.

<img src="" style="width:30px;height:30px;"> 
like image 68
Mike Gledhill Avatar answered Sep 16 '22 23:09

Mike Gledhill