OK, problem is, i set the width and height of the to viewport size, but if i write any text inside <h1></h1>
, scrollbars appear. i cant figure out why it behaves like this, i suppose i'm doing something noobish. I've made some designs just with HTML and CSS and never came across something like this, this time i was trying to do some responsive design testing with FlexBoxGrid and came across this. as i said, as soon as i delete the text inside <h1></h1>
scrollbars disapear.
same thing happens with those commented <h3></h3>
. happens with <p></p>
too... :/
<body>
<!-- HEADER SECTION -->
<header id="sec_home">
<div class="row center-xs center-sm center-md center-lg middle-xs middle-sm middle-md middle-lg">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h1>sdfsdf</h1>
<!--<h3>
The beast.
</h3>
<h3>
The best.
</h3>-->
</div>
</div>
</header>
<!-- BIOGRAPHY SECTION -->
<section id="sec_bio">
</section>
* {
padding: 0;
margin: 0;
}
@font-face {
font-family: 'BlkLite'; /*a name to be used later*/
src: url('/fonts/BlkLite.ttf'); /*URL to font*/
}
h1 {
font-family: 'BlkLite';
font-size: 8em;
color: rgb(206, 206, 206);
background-color: blueviolet;
}
#sec_home {
background-image: url("/bg/14582.jpg");
background-color: black;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
width: 100vw;
}