Amandeep Dhiman Amandeep Dhiman - 5 months ago 8
CSS Question

please tell me if i can give border to css url(image)

h1 {
color: white;
font-family: cursive;
margin: -8px;
text-align:center;
background-color: #333;
font-family:verdana;
padding:27px;
background: url(thapar.jpg) no-repeat 8% 50% #333 ;
background-size: 100px 120px;
font-size:470%;
}


This my header image and there is an image which I am to give border.

Answer

enter image description here

Is this what you're trying to achieve? There's a background image in the header and the background has a border?

If yes, then the only way you can accomplish it is by adding the background on the image itself or by adding another tag inside the h1 and adding the border to that tag.

Comments