Created
August 14, 2013 08:40
-
-
Save JonathanMH/6229073 to your computer and use it in GitHub Desktop.
simple html float example with cat content
This file contains hidden or 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>Float</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
</head> | |
<style> | |
.left { | |
width: 300px; | |
float: left; | |
} | |
.right { | |
width: 300px; | |
float: left; | |
margin-left: 10px; | |
} | |
</style> | |
<body> | |
<h1>Float!</h1> | |
<div class="left"> | |
<p>Jeg skal gerne stå til venstre</p> | |
<img src="http://placekitten.com/209/400" /> | |
<p>Elementet jeg er i har følgende CSS regler: </p> | |
<pre> | |
.left { | |
width: 300px; | |
float: left; | |
} | |
</pre> | |
</div> | |
<div class="right"> | |
<p>Jeg skal gerne stå til højre</p> | |
<img src="http://placekitten.com/210/400" /> | |
<p>Elementet jeg er i har følgende CSS regler: </p> | |
<pre> | |
.right { | |
width: 300px; | |
float: left; | |
} | |
</pre> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment