This might be easy for some of you but it hasnt worked for me so I will ask it anyway.. I have a header file in php...that has a bookstore name in it...right now I have the name of the bookstore appearing after the image.Well I want the image to be the background of the bookstore name..so obviously I have to use background-image.. I have tried adding background image in my header in css and it's not working and am sure am getting the path right...I have even tried to move the image to default folder where my html is but its not working..obviously am doing something wrong so help me please... here is my php header file(I have commented out the image in the header so it doesn't show).
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $pageTitle; ?></title>
<link rel="icon" type="image/png" href="images/book.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo $description;?>">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header id = 'header'>
<!--<img src='images/bannercut.jpg' id='banner' alt='Bookstore Banner'>-->
<h1>Gabby's BookStore</h1>
</header>
Here is my css
header{
background-image: url('bannercut.jpg');
}
#headersince it's by ID , if it were a class, then.header