<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Float mit Liste 01</title>
<meta name="description" content="HTML5, CSS3">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv-printshiv.googlecode.com/svn/trunk/html5shiv-printshiv.js"></script>
<![endif]-->
<style>
/* Float und Clearfix - Micro-Clearfix-Hack */
@media all {
.floatlinks {
float: left;
}
.cf::before,
.cf::after {
content: " "; /*Leerstelle ist wichtig*/
display: table;
}
.cf::after {
clear: both;
}
}
@media all {
header, nav, main, aside, footer, section, article, figure, figcaption, audio, video {
display: block;
}
* {
box-sizing: border-box;
}
html {
font-family: sans-serif;
font-size: 100%;
line-height: 1.3;
}
body {
background-color: #666;
margin: 0;
}
main {
background-color: #E8E8E8;
width: 72.8%;
padding: 0 10px 10px 10px;
}
.liste01 p {
margin-top: 0;
}
.liste01 ul {
padding-left: 16px;
}
figure {
margin: 0;
}
figure img {
max-width: 100%;
display: block;
}
figure.floatlinks {
margin-left: 0px;
margin-right: 35px;
margin-bottom: 15px;
}
}
</style>
</head>
<body>
<main>
<div class="liste01">
<p>Die Vorteile:</p>
<ul>
<li>Vorteil 1</li>
<li>Vorteil 2</li>
<li>Vorteil 3</li>
</ul>
</div>
<div class="cf">
<figure class="floatlinks">
<img src="http://chaph.opaya.de/test.jpg" alt="Testbild">
</figure>
<div class="liste01 floatlinks">
<p>Die Nachteile:</p>
<ul>
<li>Nachteil 1</li>
<li>Nachteil 2</li>
<li>Nachteil 3</li>
</ul>
</div>
</div>
<p>Und hier gehts dann weiter.</p>
</main>
</body>
</html>