I am new here and registered because I could not find my answer in the existing steps.
I am trying to create a one page website and I want the "landing page" to have a full background. I had a background on the whole page, but when I started placing text in a div, it broke. I used the following css (sass):
.intro { color:
In the following HTML:
<html> <head> <link href="stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> <title>My title</title> </head> <body> <div class="container"> <div class="row"> <div id="intro" class="intro"> <div class="text-center"> <p class="hello"> Intro text is coming soon! </p> <div class="col small-col-12 intro--buttons"> <p>Buttons coming here. </p> </div> </div> </div> <div id="page1" class="col col-12 page1"> <p>Tekst test</p> </div> <div id="page2" class="col col-12 page2"> <p>Tekst test.</p> </div> </div> </div> </body> </html>
The result can be seen here: http://codepen.io/Luchadora/full/waYzMZ Or look at my pen: http://codepen.io/Luchadora/pen/waYzMZ
As you can see, when positioning input text ( p.hello {margin: 30px;} the background size changed and was no longer full-screen (Btw: I used an example background). There are also spaces on other pages now.
How can i fix this? I read articles about viewports, but I think the only thing I need for this is height: 100vh; , right? Thanks in advance!
source share