Amandeep Dhiman Amandeep Dhiman - 10 months ago 29
CSS Question

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

h1 {
color: white;
font-family: cursive;
margin: -8px;
background-color: #333;
background: url(thapar.jpg) no-repeat 8% 50% #333 ;
background-size: 100px 120px;

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


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.