Created
September 13, 2011 19:41
-
-
Save RalfAlbert/1214866 to your computer and use it in GitHub Desktop.
figure-Tag Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>figure-Tag</title> | |
<style type="text/css"> | |
.container, .links, .rechts { float:left; padding:5px; margin: 2px } | |
.container { width:600px } | |
.links { border:1px solid red } | |
.rechts { border:1px solid blue } | |
p { background: yellow } | |
figure { background:#ddd } | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h2>Mit figure</h2> | |
<div class="links"> | |
<h3>Ohne p-Tag</h3> | |
<figure> | |
Etwas Text | |
</figure> | |
<figure> | |
Noch etwas Text | |
</figure> | |
</div> | |
<div class="rechts"> | |
<h3>Mit p-Tag</h3> | |
<p> | |
<figure> | |
Etwas Text | |
</figure> | |
</p> | |
<p> | |
<figure> | |
<p>Noch etwas Text</p> | |
</figure> | |
</p> | |
</div> | |
</div> | |
<div class="container"> | |
<h2>Ohne figure</h2> | |
<div class="links"> | |
<h3>Ohne p-Tag</h3> | |
Etwas Text | |
Noch etwas Text | |
</div> | |
<div class="rechts"> | |
<h3>Mit p-Tag</h3> | |
<p> | |
Etwas Text | |
</p> | |
<p> | |
<p>Noch etwas Text</p> | |
</p> | |
</div> | |
</div> | |
</body> | |
<html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment