1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<!doctype html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8" />
<title>menu fixed</title>
<style type="text/css">
aside {
position:fixed;
margin: 0 5% 0 3%;
z-index: 2;
}
#content {
background: red;
position:relative;
overflow:hidden;
/* margin:5% 5% 0 25%; */
}
</style>
</head>
<body>
<aside>
<div id="logo"></div>
<nav>
<ul>
<li><a href="#">Electronic</a></li>
<li><a href="#">Dubstep</a></li>
<li><a href="#">Indie</a></li>
<li><a href="#">Drum n Bass</a></li>
<li><a href="#">House</a></li>
</ul>
</nav>
</aside>
<div id="content">
<article>
<header>
<h1>Music Title</h1>
</header>
<section>
<p>Du contenu...</p>
</section>
<footer>
<!-- Sharing options here -->
</footer>
</article>
</div>
</body>
</html> |
Partager