Not sure how to do this… I’m a bit of a php noob. I’m trying to echo the div class ‘.header1’
In my css I’ve given .header1 a background image and I want that to appear, but I’m not having any luck so my code must be wrong. Here it is:
echo '<div class="header1">';
.header1 {
background: url(_images/header1.png);
What am I doing wrong? I’ve tried it with and without the closing div but neither have worked.
The div tag needs both an ending tag and content.
If there is no content, you need to define it’s
heightandwidthmanually.