Background image not showing up

Hey i am developing a wp theme from scratch.I want to set a background image.

So i have declared some css code inside the body but it didnt works actually..

The code is

header.php

<body <?php body_class(); ?> > 
<div id="avinash">
<header class = "firstclass">
<h1><a href="<?php home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description') ?> </h2>
</div> 


<nav class="mythirdclass">
<?php wp_nav_menu(); ?>
</nav>

</header>

footer.php

<?php wp_footer(); ?>
<div class = "mysecondclass">
<footer class="asampleclass">
</footer>
</div> 
</body>
</html>

style.css

body {
background: url('background.jpg') no-repeat top left;
}

The image background.jpg is in the same directory actually..But this code isnt working for me..

Any help would be appreciated..Thanx

Read more here: Background image not showing up

Leave a Reply

Your email address will not be published. Required fields are marked *