I want to add a background image with border around it.
After searching here and there I found many codes but of no use.
Currently, my code looks like this:
My HTML File:
<!DOCTYPE html>
<html>
<head>
<title>Survey Form</title>
<link rel="stylesheet" type="text/css" href="survey-form.css">
</head>
<body>
<div id="bg-border">
<div id="bg"></div>
</div>
</html>
My CSS code:
#bg-border {
border: 5px solid red;
}
#bg {
background: url(http://wallpoper.com/images/00/31/33/51/black-background_00313351.jpg);
}
But the result I’m having is:
Can you help me please ?