I am using this code for making background image fixed but image url is not working can you tell me what I am missing.
code is written in my view file :
html {
background: url(<?php echo base_url();?>assets/images/img.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Why I am getting "304 error" on all these files? I'm using this code to link these files:
<script type="text/javascript" src="<?php echo base_url(); ?>assets/jquery/jquery-3.2.1.min.js"></script>
<link href=" <?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
<link href=" <?php echo base_url(); ?>assets/style/style.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url();?>/assets/js/bootstrap.min.js"></script>

background: url(../assets/images/img.jpg)no-repeat center;