Skip to content

Instantly share code, notes, and snippets.

@frekw
Created March 5, 2010 09:16
Show Gist options
  • Save frekw/322600 to your computer and use it in GitHub Desktop.
Save frekw/322600 to your computer and use it in GitHub Desktop.
<html>
<head>
<style type="text/css" media="screen">
body { padding: 0; margin: 0; }
#header { height: 200px; background: #ccc; position: relative; padding: 10px; }
#menu { list-style: none; position: absolute; right: 50%; margin-right: -300px; top: 0px;}
#menu li { float: left; margin-right: 20px;}
#header h1 { position: absolute; left: 50%; margin-left: -300px; top: -10px;}
</style>
</head>
<body>
<div id="header">
<h1>Sven Hamberg <br />
<small>fotograf</small>
</h1>
<ul id="menu">
<li><a href="#">Hem</a></li>
<li><a href="#">Foton</a></li>
<li><a href="#">Om mig</a></li>
</ul>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment