This is a migrated thread and some comments may be shown as answers.

Border

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kv's rhwnd
Top achievements
Rank 1
kv's rhwnd asked on 29 Mar 2010, 08:08 AM

 

Hi All
I used an div tag with an img tag & Label,I set Border with 0

 

<div>

 

 

 

 

<img class="mainbarimg" alt="" />

 

 

 

 

<asp:Label CssClass="headlabel" runat=server id="lblcustomers" Text=" " ></asp:Label>

 

 

</div>

and my css class is:

 

.mainbarimg

 

 

 

 

{

 

 

background:url(../images/row-right.jpg);

 

 

 

width:3px;

 

 

 

height:30px;

 

 

 

float:right;

 

 

 

border-style:none;

 

 

}

But Border Appear arround My IMAGE

 

 

Edit your post Reply

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Mar 2010, 11:43 AM

Hello,

I am not sure about the the issue, since the given code worked fine in my end. Could you check whether you have any other style added for img which is overridden the above style?

Also try inline style for img and see whether it helps.

   <img class="mainbarimg" alt="" src="Images/Sunset.jpg" style="border:none;" />

-Shinu.

Tags
General Discussions
Asked by
kv's rhwnd
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or