How to add 3 images as back ground to an div

Posted by Sahoo under CSS 3 on 8/28/2012 | Points: 10 | Views : 1082 | Status : [Member] | Replies : 3
Hi

I have a link button which has an IMAGE as background.Actually this image is consist of 3 part , right , middle part and left part.How can I add all 3 images in a single CSS class .



Thanks




Responses

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

try this

.img1 {
width: 100px;
height: 55px;
margin: 0;
padding: 0;
border: 0;
background: transparent url(./images/elevation.jpg) no-repeat center top;
text-indent: -1000em;
cursor: pointer; /* hand-shaped cursor */
cursor: hand; /* for IE 5.x */
width:100;
height:100;
}
<asp:LinkButton ID="lnk" runat="server" CssClass="img1" Text="Click">
</asp:LinkButton>




Mark as Answer if its helpful to you

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Nice Code Jayakumar

Thanks & Regards
Hari

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response