Click here to Skip to main content
15,903,523 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can Anyone Reply me pls...


how to set background image for element of a page
Posted
Comments
Manish.Insan 15-Dec-11 1:20am    
please explain this question...
either you want background image for page or for particular control or for panel, div, table etc.
M.Narmatha 15-Dec-11 1:22am    
part of page..
M.Narmatha 15-Dec-11 1:25am    
panel..
jerrykid 15-Dec-11 1:21am    
Reference: http://www.w3schools.com/cssref/pr_background-image.asp

you can use backimageUrl property of panel. and in div use style and then background-image and on page use image in body tag either use background-image or set image using style property.
 
Share this answer
 
Comments
M.Narmatha 15-Dec-11 1:56am    
inside panel image repeating 3 times..i want single image to cover full panel..what to do...
Try this
XML
<asp:Panel ID="Panel4" runat="server" Height="30px" Width="370px" CssClass="fancyPanel">


</asp:Panel>

C#
.fancyPanel
{
background-image: url(http://www.mendhak.com/logo.gif);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900