<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.9, user-scalable=0, minimum-scale=0.9, maximum-scale=0.9">
<link rel="stylesheet" href="style.css" type="text/css">
<title>R6 | Home</title>
</head>
<body>
<div class="bgwrapper">
<div id="wrapper">
<header>
<img src="images\logo.png"
width="355,55"
height="200">
</header>
<section>
<img src="images\dia.jpg" alt="Dia"
class="bild"
width="1000"
height="550">
</section>
<aside>blablablablablablablablablab
lablablablabla
blablablablablablablablablablablabl
ablablablablablabla.</aside>
<footer></footer>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="prices.html">Prices</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</div>
</body>
</html>
R6 | Home
Css Dazu:
body{
}
#wrapper{
width: 1620px;
}
header{
height: 150px;
text-align: center;
font-size: 39px;
margin-bottom: 50px;
margin-top: -20px;
}
nav{
text-align: left;
height: 1068px;
width: 300px;
position: fixed;
top: 150px;
left: 0px;
}
nav li{
list-style: none;
padding: 50px;}
a{
color: green;
text-decoration: none;
padding: 4px;
}
section{
width: 1100px;
height: 600px;
float: center;
padding-left: 300px;
}
aside{
width: 300px;
height: 500px;
float: right;
font-size: 30px;
color: white;
background-color: red;
padding: 50px;
}
footer{
margin-top: 50px;
height: 50px;
clear: both;
}
.bild {
width: 100%;
height: auto;
}
.bgwrapper{
height: 1080px;
width: 1920px;
position: fixed;
top: 0px;
left: 0px;
overflow: hidden;
background-image: url(images/ela.jpg);
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
}
Ich möchte gerne aside verschieben jedoch mit einem Abstand zum bild
Aber es lässt sich nicht verschieben, jemand ne idee?