.row {
margin: 5px 0px;
}
.row:first-of-type {
margin-top: 0px;
}
.row:last-of-type {
margin-bottom: 0px;
}
.row > div > div {
position: absolute;
top: 80px;
display: block;
bottom: initial !important;
}
.row .padding-0 {
padding: 0px;
position: relative;
}
.row > div > div h1 {
font-size: 1em;
font-weight: bold;
}
.row > div > div p, .row > div > div ul li {
font-size: 0.7em;
font-weight: normal;
}
/* Small devices (tablets, 450px and up) */
@media (min-width:450px) {
.row > div > div h1 {
font-size: 1em;
font-weight: bold;
}
.row > div > div p, .row > div > div ul li{
font-size: 0.7em;
font-weight: normal;
}
blockquote footer {
font-size: 0.5em;
}
}
/* Small devices (tablets, 768px and up) */
@media (min-width:768px) {
.row > div > div h1 {
font-size: 1em;
font-weight: bold;
}
.row > div > div p, .row > div > div ul li {
font-size: 0.9em;
font-weight: normal;
}
blockquote footer {
font-size: 0.7em;
}
}
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
.row > div > div h1 {
font-size: 1.6em;
font-weight: bold;
}
.row > div > div p, .row > div > div ul li {
font-size: 1.2em;
font-weight: normal;
}
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
.row > div > div h1 {
font-size: 2em;
font-weight: bold;
}
.row > div > div p, .row > div > div ul li {
font-size: 1.4em;
font-weight: normal;
}
}
/* extra small devices (phones, 450px and down) */
@media (max-width:450px) {
.row#intro > div > div {
bottom: 10%;
left: 10%;
}
.row#om > div > div {
bottom: 3%;
left: 10%;
width: 70%;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px;
border-radius: 4px;
}
.row > div div p {
font-size: 0.5em;
}
}
/* Small devices (tablets, 450px and up) */
@media (min-width:450px) {
.row#intro > div > div {
bottom: 5%;
left: 5%;
}
.row#om > div > div {
bottom: 5%;
left: 5%;
width: 50%;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px;
border-radius: 4px;
}
}
/* Small devices (tablets, 768px and up) */
@media (min-width:768px) {
}
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
.row#intro > div > div {
bottom: 10%;
left: 10%;
}
.row#om > div > div {
bottom: 10%;
left: 10%;
width: 50%;
background-color: transparent;
padding: 0px;
color: black;
}
}
<div id="intro" class="row">
<div class="col-sm-12 padding-0">
<img class="img img-responsive" src="http://teknologitalenter.dk/img/villiam.jpg" />
<div>
<h1>
Header
</h1>
<p>Sub header.</p>
</div>
</div>
</div>
<div class="row" id="om">
<div class="col-sm-12 padding-0">
<img class="img img-responsive" src="http://teknologitalenter.dk/img/oculus.jpg" />
<div>
<p>
Section text
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mattis pulvinar nisi sed sagittis. Donec ultricies id leo a ultricies. Praesent nunc ex, commodo vel vestibulum mollis, pretium vel purus. Donec suscipit nulla est, interdum varius risus sollicitudin vel. Cras tortor neque, vehicula non massa in, iaculis scelerisque ipsum. Cras vel dignissim lorem. Morbi pellentesque orci nec nulla vehicula, ac condimentum lectus scelerisque. Sed dolor arcu, condimentum sagittis nisi quis, mollis convallis nunc. Mauris mollis, lacus non interdum faucibus, ligula leo faucibus mauris, nec sodales lectus nulla sit amet mauris. Sed non viverra lectus. Maecenas at fringilla felis.
In iaculis tellus eu felis placerat, et aliquet augue rutrum. Praesent lectus diam, blandit sed vehicula at, venenatis quis lorem. Nunc auctor pretium odio, ac rutrum diam ullamcorper ut. Proin vitae ornare magna. In sapien risus, dapibus id sagittis at, gravida et leo. Fusce lectus neque, mattis eget magna non, iaculis laoreet enim. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vel dapibus lacus, ut efficitur ligula. Nunc vel justo condimentum, ullamcorper erat ut, sollicitudin ante. Sed nec ornare sapien. Praesent non neque quam. Aenean eget justo sodales, vehicula ex sit amet, cursus nisl. Integer suscipit massa commodo, accumsan dol...