Hey guys,
could you please help me with an advice how to solve the issue with my landing page.
The thing: I want to make a landing page, so when user visits a website he sees the page with an image on the background that covers only the section of the landing page (not entire website). The problem before I had the image would not cover the section entirely in all browsers (particularly in Google Chrome).
Through JS I checked that my screens resolution (1680×1050) and set the height to 1050px.
So, is it the way to solve it or could you please help me to figure it out. I don’t want to copy and paste someone elses code, as I would really like to understand it myself. And please don’t judge me for my text I am only started to lear
So basically I have
<navbar>
<div class=”jumbotron jumboIntro”>
<div class=”container introtext” >
</div>
</div>
in jumbotrone i need to place the image that would cover entire screen regardless the resolution or zoom in out. Is it possible to achieve?
the css I use for jumbotron jumboIntro” and “container introtext”:
.jumboIntro
{
background-image:url(img/rabbit.jpg);
background-color:transparent;
width:100%;
height:1050px; /*this used to be 100%
background-position:top left;
background-attachment:fixed;
background-repeat:no-repeat;
background-size:cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
.container.introtext
{
width:800px;
text-align:justify;
margin-right:32%;
}