Skip to content

Instantly share code, notes, and snippets.

@yuxel
Created January 13, 2011 14:39
Show Gist options
  • Save yuxel/777946 to your computer and use it in GitHub Desktop.
Save yuxel/777946 to your computer and use it in GitHub Desktop.
vertical align
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Sonsuzdongu.com</title>
</head>
<body>
<div style="position:relative; border:1px solid red; width:960px; height:600px; line-height:600px; text-align:center; ">
<span style="display:inline-block; vertical-align:middle;">
<div style="height:20px; width:200px; background:#b31616; line-height:20px;">
sonsuzdongu.com
</div>
</span>
<span>&nbsp;</span> <!-- love you ie -->
</div>
</body>
</html>
@gokhansongul
Copy link

<title>Sonsuzdongu.com</title>
sonsuzdongu.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment