What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 28046 |  Welcome, Guest!   Register  Login
 Home > Forums > CSS > How to add 3 images as back ground to an div ...
Sahoo

How to add 3 images as back ground to an div

Replies: 3 | Posted by: Sahoo on 8/28/2012 | Category: CSS Forums | Views: 391 | Status: [Member] | Points: 10  


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


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Jayakumars
Jayakumars  
Posted on: 9/27/2012 6:25:14 AM
Level: Bronze | Status: [Member] | Points: 25

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

Regards
Email Id: kumaraspcode2009@gmail.com

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

Jayakumars
Jayakumars  
Posted on: 9/27/2012 6:25:22 AM
Level: Bronze | Status: [Member] | Points: 25

Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Regards
Email Id: kumaraspcode2009@gmail.com

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

Hariinakoti
Hariinakoti  
Posted on: 9/27/2012 6:28:35 AM
Level: Starter | Status: [Member] | Points: 25

Nice Code Jayakumar

Thanks & Regards
Hari

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

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 5:45:14 AM