Try this DEMO:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<!--
http://www.sitepoint.com/forums/showthread.php?939674-How-to-position-a-horizontal-tab-layout
Thread: How to position a horizontal tab layout
2012.12.18 05:06
Zygoma (Cheeky)
-->
<head>
<title>Menu Hangout</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="en-us">
<style type="text/css">
.container {
display:table;
margin:0px auto;
}
.header {
background-color:#ffa;
width:600px;
height:220px;
position:relative;
}
ul {
list-style-type:none;
padding:0;
margin:0;
position:absolute;
top:10px;
left:100%;
}
li {
border:1px solid #b86;
background-color:#fdb;
line-height:1;
padding:5px;
margin:0;
}
.content {
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<ul>
<li>o<br>n<br>e</li>
<li>t<br>w<br>o</li>
<li>t<br>r<br>e<br>e</li>
</ul>
</div>
<div class="content">
<p>Lorem Ipsum lives here.</p>
</div>
</div>
</body>
</html>
Bookmarks