Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- 3 Section Header


birdbrain - 10:43 am on Oct 27, 2011 (gmt 0)


Hi there LinusIT,

the "#header-right" element must take precedence...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">

<title></title>

<style type="text/css">
body {
min-width:980px; /* this will prevent "#menu# from sliding under "#header-left" */
}
#header-right {
width:90px;
float:right;
}
#header-left {
width:160px;
float:left;
}
#menu {
width:660px;
margin:auto;
}
</style>

</head>
<body>

<div id="header-right">
<ul>
<li><a href="#" class="settings"></a></li>
<li><a href="#" class="logout"></a></li>
</ul>
</div>

<div id="header-left">
<ul>
<li><a href="#" class="active"></a></li>
<li><a href="#" class="inactive"></a></li>
</ul>
</div>

<div id="menu">
<ul class="pureCssMenu pureCssMenum0">
<li class="pureCssMenui0"><a class="pureCssMenui0"
href="/dev/">Home</a></li>
<li class="pureCssMenui0"><a class="pureCssMenui0"
href="/dev/contact-details.php">Contacts</a></li>
<li class="pureCssMenui0"><a class="pureCssMenui0"
href="/dev/diary/">Diary</a>
</ul>
</div>

<div class="clear"></div>

</body>
</html>

birdbrain

[edited by: alt131 at 11:55 am (utc) on Nov 2, 2011]
[edit reason] Side Scroll [/edit]


Thread source:: http://www.webmasterworld.com/css/4380033.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com