I am trying to set my background image on my first view could you please tell me why my background image not display .I want to display background image on my view .i tried to use css but not work here is my code http://codepen.io/anon/pen/pvYdNM
.test {
border: 1px solid red;
position: relative!important;
background: url('https://d262ilb51hltx0.cloudfront.net/max/800/1*AJALCafqXhfLMG7iF7Ho0A.jpeg');
}
to override the default style you need to use !important
, remove relative positioning
.test {
border: 1px solid red;
background: url('some-url.jpg')!important;
background-size:cover !important;
}
further apply this test class to tag and remove from header tag
see demo