CSS Menu from adapted theme
Posted: Mon Sep 04, 2006 8:10 pm
Hi
First thanks for a great straight forward system for novices like me...
I am using CMSMS ver. 0.12.1 and I have converted a webdesign from openwebdesign.org - Every thing is just perfect but my menu causing me headache ( I have no skills for CSS ) - How can I make a Horizental dropdown menu like http://themes.cmsmadesimple.org/horizontal_ellnav.html - hope someone could help me tune my Css / html
Any help would be great
Here is my CSS
and here is my HTML
First thanks for a great straight forward system for novices like me...
I am using CMSMS ver. 0.12.1 and I have converted a webdesign from openwebdesign.org - Every thing is just perfect but my menu causing me headache ( I have no skills for CSS ) - How can I make a Horizental dropdown menu like http://themes.cmsmadesimple.org/horizontal_ellnav.html - hope someone could help me tune my Css / html
Any help would be great
Here is my CSS
Code: Select all
body {
text-align: center;
}
#container {
display: table;
width: 750px;
margin: 0 auto;
}
h1 {
margin: 8px 0px 0px 0px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 15px;
color: #505050;
letter-spacing: 4px;
padding-bottom: 3px;
border-bottom: 1px #777777 solid;
}
/******************************
Header + Navigation Menu
******************************/
#header {
width: 246px;
height: 40px;
float:left;
padding: 25px 0px 25px 0px;
}
#nav {
clear: both;
text-align: left;
width: 750px;
height: 22px;
border-top: 2px #777777 solid;
border-bottom: 2px #777777 solid;
}
#nav ul {
margin: 0;
padding: 0;
list-style: none;
}
#nav ul li {
margin: 0;
float: right;
}
#nav a {
float: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
letter-spacing: -1px;
padding: 2px 10px 0px 10px;
color: #666666;
text-decoration: none;
}
#nav a:hover {
color: #464646;
}
/******************************
News Updates Column
******************************/
#newsupdate {
width: 240px;
float: left;
}
.newstitle {
margin-top: 8px;
width: 233px;
text-align: left;
padding-left: 7px;
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
font-weight: bold;
color: #80aa11;
float: left;
}
.newstitle span {
color: #666666;
}
#newsupdate p {
margin: 0;
padding-left: 3px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 14px;
text-align: left;
color: #505050;
}
.date {
width: 240px;
float: left;
margin-top: 7px;
text-align: right;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #6A6A6A;
}
/******************************
Welcome Message IMG+TEXT
******************************/
.rightcontainer {
width: 510px;
float: right;
}
#welcome {
width: 480px;
height: 150px;
padding: 82px 0px 10px 30px;
border-bottom: 1px #ccc solid;
background: url(./uploads/images/welcome/random.php) top right no-repeat;
text-align:left;
font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
font-size: 36px;
color:#aaaaaa;
}
/******************************
Webpage Contents
******************************/
#content {
margin-top: 10px;
padding-left: 10px;
width: 500px;
float: right;
}
#content h3 {
width: 500px;
text-align: left;
font-family: "Trebuchet MS", Helvetica, sans-serif;
color: #777777;
float:left;
margin: 0;
}
#content p {
margin: 0;
padding: 0;
text-align: left;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;
color: #000;
}
/******************************
images in content if you want - align left or right;
ex: <img src="blah.jpg" class="left" />
******************************/
#content .left {
float: left;
}
#content .right {
float: right;
}
/******************************
Footer
******************************/
#footer {
float: left;
margin-top: 10px;
padding-top: 3px;
width: 750px;
border-top: 1px #a4a4a4 solid;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
#footer a {
color: #80aa11;
}
#footer a:active, a:visited {
color: #80aa11;
}
#footer a:hover {
color: #666666;
}
and here is my HTML
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thomas</title>
{stylesheet}
</head>
</__body>
<div id="container">
<!--
******************************
Header + Navigation
******************************
-->
<div id="header"><img src="images/logo.jpg" style="float: left;" alt="" /></div>
<div id="nav">
<ul>
<li>{cms_module module='menumanager'"}</li>
</ul>
</div>
<!--
******************************
News Updates Column
******************************
-->
<div id="newsupdate">
<h1>NYHEDER</h1>
{cms_module module="news" number="2" moretext="mere..." dateformat="%b %d, %Y"}
<br></br>
{cms_module module="news" number="2" makerssbutton="true" moretext="mere..." dateformat="%b %d, %Y"}
</div>
<!--
******************************
Welcome Message IMG+TEXT
******************************
-->
<div class="rightcontainer">
<div id="welcome">{title}</div>
<div id="content">
<p>{content}</p>
</div>
</div>
<div id="footer">
Copyright© Thomas Thomsen | Designed by <a href="http://vipstudiotech.com">IDesignz</a>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
</div>
</div>
<__body>
</__html>