Hello everyone,
I'm having a problem where the background image I've specified for a div is not displaying. Below are the relevant snippets of my HTML and CSS code:
TPL file:
<div id="board">
</div>
CSS (in tutoricalnovbee.css):
#board {
width: 536px;
height: 528px;
background-image: url('img/board.jpg');
position: relative;
margin: auto;
}
The img directory is located at the root of my website, at the same level as my HTML file. I've tried the following things:
Checked that the file board.jpg exists in the img directory and the path is correct.
Made sure there are no CSS specificity or override issues.
Cleared browser cache and tried different browsers.
I'm having a problem where the background image I've specified for a div is not displaying. Below are the relevant snippets of my HTML and CSS code:
TPL file:
<div id="board">
</div>
CSS (in tutoricalnovbee.css):
#board {
width: 536px;
height: 528px;
background-image: url('img/board.jpg');
position: relative;
margin: auto;
}
The img directory is located at the root of my website, at the same level as my HTML file. I've tried the following things:
Checked that the file board.jpg exists in the img directory and the path is correct.
Made sure there are no CSS specificity or override issues.
Cleared browser cache and tried different browsers.