Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
how to set image through style sheet and border
.class_name
{
 backgroud-image:url(?????);
 border:??;
}
Posted
Updated 6-Jun-11 20:07pm
v3
Comments
Sergey Alexandrovich Kryukov 6-Jun-11 15:16pm    
How it is related to C# which you tagged? This is CSS. Tag CSS.
--SA

try this link
w3schools.com[^]
 
Share this answer
 
Comments
anvas kuttan 7-Jun-11 0:06am    
best link to learn CSS My 5
ambarishtv 7-Jun-11 2:07am    
Thank you Anvas
CSS
CSS
.imgborder
{
 backgroud-image:url(image.gif);
 border:1px solid black;
}

HTML
<div class="imgborder">blah blah blah blah blah blah</div>
 
Share this answer
 
Comments
Uday P.Singh 7-Jun-11 2:10am    
good answer my 5
XML
<pre lang="css">.class_name {
    background-image: url(http://www.xyz.com/abc.gif);
//or
background-image: url(pics/cssT/smallPic.jpg);

    background-repeat: repeat-x;
}</pre>
 
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