Ersatz für DIV
HTML
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Border-Radius</title>
<style>
.box{
width: 100%;
max-width: 600px;
margin: auto;
border: 5px solid #234d65;
border-radius: 10px;
padding:0;
background:#fff;
}
.box img {
width:100%;
border-radius:5px 5px 0 0;
}
.box figcaption {
padding:10px;
}
</style>
</head>
<body>
<figure class="box">
<img src="bild1.png" width="500" height="281" alt="bild1">
<figcaption>Bilsbeschreibung</figcaption>
</figure>
</body>
</html>
Alles anzeigen