I use this style-sheet today:
Code: Select all
/* Top Elements */
* { margin: 0; padding: 0; outline: 0 }
body {
background: #f7f0e3 url(uploads/Outdoors/bg.jpg) repeat-x;
font: 70%/1.6em Verdana, Tahoma, Arial, Geneva, sans-serif;
color: #000000;
text-align: center;
margin: 0 0 50px 0;
}
/* links */
a, a:visited {
color: #5A93C9;
background: inherit;
text-decoration: none;
}
a:hover {
color: #88ac0b;
background: inherit;
text-decoration: underline;
}
/* headers */
h1, h2, h3 {
font-family: 'FS Clerkenwell Regular',Regular,Sans-serif;
color: #444;
}
h1 {
font-size: 230%;
font-weight: normal;
letter-spacing: -1px;
}
h2 {
font-size: 180%;
color: #000000;
}
h3 {
font-size: 150%;
font-weight: normal;
}
h1, h2, h3, p {
padding: 3px;
margin: 0;
}
ul, ol {
margin: 2px 2px;
padding: 0 20px;
}
ul {
list-style: none;
}
/* images */
img {
background: #fafafa;
border: 1px solid #dcdcdc;
padding: 5px;
}
img.float-right {
margin: 5px 0px 10px 10px;
}
img.float-left {
margin: 5px 10px 10px 0px;
}
code {
margin: 5px 0;
padding: 10px;
text-align: left;
display: block;
overflow: auto;
font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
/* white-space: pre; */
border: 1px solid #F4F3EC;
background: #FAFAE7;
}
acronym {
cursor: help;
border-bottom: 1px dashed #777;
}
blockquote {
margin: 10px;
padding: 0 0 0 35px;
border: 1px solid #F4F3EC;
background: #FAFAE7 url(uploads/Outdoors/quote.jpg) no-repeat 7px 10px;
font: bold 1.3em/1.5em 'Trebuchet MS', Tahoma, Sans-serif;
color: #976957;
}
/* start - table */
table {
border-collapse: collapse;
margin: 10px;
}
th strong {
color: #fff;
}
th {
background: #93BC0C url(uploads/Outdoors/nav.jpg) repeat-x;
height: 35px;
padding-left: 12px;
padding-right: 12px;
color: #fff;
text-align: left;
border-left: 1px solid #B6D59A;
border-bottom: solid 2px #fff;
}
tr {
height: 32px;
}
td {
padding-left: 11px;
padding-right: 11px;
}
td.lista {
padding-left: 2px;
padding-right: 2px;
}
td.first,th.first {
border-left: 0px;
}
tr.row-a {
background: #F8F8F8;
}
tr.row-b {
background: #EFEFEF;
}
/* end - table */
/* form elements */
form {
margin:5px; padding: 0 2px;
border: 1px solid #f1f1f1;
background-color: #f5f5f5;
}
label {
display:block;
font-weight:bold;
margin:5px 0;
}
input {
padding:2px;
border:1px solid #eee;
font: normal 1em Verdana, sans-serif;
color:#777;
}
textarea {
width:400px;
padding:2px;
font: normal 1em Verdana, sans-serif;
border:1px solid #eee;
height:100px;
display:block;
color:#777;
}
input.button {
font: bold 12px Arial, Sans-serif;
height: 24px;
margin: 0;
padding: 2px 3px;
color: #FFF;
background: #8EB50C url(uploads/Outdoors/nav.jpg) repeat-x 0 0;
border: 1px solid #88AD0C;
}
/* search form */
.searchform {
background-color: transparent;
border: none;
margin: 0; padding: 5px 0 15px 0;
width: 250px;
}
.searchform p { margin: 0; padding: 0; }
.searchform input.textbox {
width: 170px;
color: #777;
height: 18px;
padding: 2px;
border: 1px solid #E5E5E5;
vertical-align: top;
}
.searchform input.button {
width: 60px;
height: 24px;
padding: 2px 5px;
vertical-align: top;
}
/********************************************
LAYOUT
********************************************/
#wrap {
position: relative;
#background: #fff url(uploads/Outdoors/wrap-bg.jpg) repeat-y;
background: #fff repeat-y;
width: 900px;
margin: 10px auto 0 auto;
text-align: left;
}
#content-wrap {
position: relative;
background: #fff url(uploads/Outdoors/content-bg.jpg) repeat-x;
clear: both;
float: left;
width: 869px;
padding: 0;
margin-left: 15px;
display: inherit;
#border-top: 5px solid #fff;
#border-bottom: 1px solid #e5e5e5;
border-left: 1px solid #fff;
border-right: 1px solid #fff;
}
#header {
position: relative;
background: #fff url(uploads/Outdoors/header-bg.jpg) repeat-x;
width: 870px;
height: 30px;
padding: 0;
margin: 0px auto;
}
#header h1#logo-text a {
position: absolute;
margin: 0; padding: 0;
font: normal 42px Georgia, "Times New Roman", Times, serif;
letter-spacing: -1.5px;
color: #111;
text-transform: none;
text-decoration: none;
/* change the values of top and left to adjust the position of the logo*/
top: 22px; left: 20px;
}
#header p#slogan {
position: absolute;
margin: 0; padding: 0;
font: normal 12px Georgia, "Times New Roman", Times, serif;
text-transform: none;
color: #5b4a29;
/* change the values of top and left to adjust the position of the slogan*/
top: 67px; left: 25px;
}
/* header links */
#header #header-links {
position: absolute;
top: 5px; right: 10px;
color: #ffffff;
font: normal 11px Georgia, "Times New Roman", Times, serif;
text-transform: uppercase;
}
#header #header-links a {
color: #ffffff;
text-decoration: none;
padding: 0 2px;
font-weight: bold;
}
#header #header-links a:hover {
color: #93a70a;
}
/* header-photo */
/* Editera margin for att fa vita mellan nav och logo */
#header-photo {
clear: both;
background: #fff;
margin: 0px auto;
padding: 0;
height:131px;
width: 870px;
}
#header-photo img {
border: none;
margin: 0; padding: 0;
}
/* Navigation */
#nav {
clear: both;
margin: 0; padding: 0;
height: 30px;
}
#nav ul {
float: left;
list-style: none;
background: url(uploads/Outdoors/nav.jpg) repeat-x;
width: 870px;
height: 30px;
text-transform: uppercase;
margin: 0 0 0 15px;
padding: 0;
display: inline;
}
#nav ul li {
display: inline;
margin: 0; padding: 0;
background-color:#719685;
}
#nav ul li a {
display: block;
float: left;
width: auto;
margin: 0;
padding: 0 14px;
font: bold 14px/30px "Century Gothic", "Trebuchet MS", Helvetica, Arial, Geneva, sans-serif;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 1px;
color: #fff;
}
#nav ul li a:hover,
#nav ul li a:active {
background: url(uploads/Outdoors/nav-hover.jpg) repeat-x;
}
#nav ul li#current a {
background: url(uploads/Outdoors/nav-current.jpg) repeat-x;
}
/* Main Column */
#main {
display: inline;
}
#main2 {
float: left;
margin: 0 0 0 5px;
display: inline;
}
#main h2 {
padding-bottom: 3px;
#font: normal 2.3em 'Trebuchet MS', Tahoma, Sans-serif;
font: normal 2.3em 'FS Clerkenwell Regular', Regular, Sans-serif;
color: #000000;
letter-spacing: -1px;
text-transform: none;
}
#main h2 a {
color: #895F30;
text-decoration: none;
}
#main ul li {
list-style-image: url(uploads/Outdoors/bullet.gif);
}
/* Sidebar */
#sidebar {
float: right;
width: 280px;
padding: 25px 0 0 0; margin: 0;
}
#sidebar h3 {
margin-top: 10px;
padding: 5px 5px;
font: normal 1.6em 'Trebuchet MS', Tahoma, Sans-serif;
color: #899B0D;
}
#sidebar ul.sidemenu {
text-align: left;
margin: 7px 10px 8px 0px; padding: 0;
text-decoration: none;
border-top: 1px solid #EBEBEB;
}
#sidebar ul.sidemenu li {
list-style: none;
border-bottom: 1px solid #EBEBEB;
padding: 5px 0 5px 5px;
margin: 0 2px;
}
* html body #sidebar ul.sidemenu li {
height: 1%;
}
#sidebar ul.sidemenu li a {
text-decoration: none;
background-image: none;
color: #895F30;
}
#sidebar ul.sidemenu li a:hover {
color: #1773BC;
}
#sidebar ul.sidemenu ul { margin: 0 0 0 5px; padding: 0; }
#sidebar ul.sidemenu ul li { border: none; }
/* footer */
#footer-wrap {
clear: both;
width: 500px;
font-size: 95%;
text-align: left;
padding: 10px 0;
#border-bottom: 0px solid #fff;
#border-top: 0px solid #fff;
margin: 32px;
}
#footer-wrap a:hover {
color: #000;
}
#footer-wrap h3 {
color: #976834;
margin: 0;
padding: 0 10px;
text-transform: uppercase;
font-weight: bold;
}
#footer-columns {
color: #888;
margin: 0 auto;
padding: 0;
width: 840px;
}
#footer-columns a {
text-decoration: none;
font-weight: bold;
color: #666666;
}
#footer-columns a:hover {
color: #719685;
}
#footer-columns ul {
list-style: none;
margin: 10px 0 0 0;
padding: 0;
border-top: 1px solid #e5e5e5;
}
#footer-columns li {
border-bottom: 1px solid #e5e5e5;
}
#footer-columns li a {
display: block;
font-weight: normal;
padding: 5px 0 5px 10px;
width: 96%;
}
#footer-columns .col3, .col3-center {
float: left;
width: 32%;
}
#footer-columns .col3-center {
margin: 0 15px;
}
/* bottom */
#footer-bottom {
clear: both;
color: #666666;
margin: 0 auto;
width: 870px;
padding: 5px 0 0 0;
text-align: center;
}
#footer-bottom a {
color: #976834;
}
/* postmeta */
.postmeta {
padding: 5px; margin: 20px 10px 15px 10px;
font-size: 95%;
color: #99997D;
border: 1px solid #EAE7DB;
background: #FAFAE7;
}
.postmeta .date{ margin: 0 10px 0 5px; }
.postmeta a.comments { margin: 0 10px 0 5px; }
.postmeta a.readmore { margin: 0 10px 0 5px; }
.post-info { font-size: .95em; padding-top: 0; margin-left: 5px; }
/* alignment classes */
.float-left { float: left; }
.float-right { float: right; }
.align-left { text-align: left; }
.align-right { text-align: right; }
/* display and additional classes */
.clear { clear: both; }
If i add a new style-sheet to the style like (outdoors: drop down):
Code: Select all
/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */
#menu_vert {
margin-left: 1px;
margin-right: 1px;
font-size: 9pt
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
/* -moz-background-clip:border; */
/* -moz-background-inline-policy:continuous; */
/* -moz-background-origin:padding; */
/* background:transparent url(uploads/Outdoors/nav.jpg) repeat-x scroll 0 0; */
/* display:inline; */
/* float:left; */
/* height:30px; */
/* list-style-image:none; */
/* list-style-position:outside; */
/* list-style-type:none; */
/* margin:0 0 0 15px; */
/* padding:0; */
/* text-transform:uppercase; */
/* width:870px; */
}
/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li {
width: auto;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
list-style: none;
margin: 98px 0px 20px 0px;
padding: 0px 20px 0px 0px;
}
#primary-nav ul {
position: absolute;
top: 60px;
display: none;
background: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
background: none;
}
#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
/* Styling the basic apperance of the menu elements */
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent,
#primary-nav ul li.menuparent:hover,
#primary-nav ul li.menuparenth {
/* arrow for menuparents */
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background-color: #88AC0B;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
/*
just add
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul ul ul,
for fourth level
*/
#primary-nav ul,
#primary-nav li:hover ul,
#primary-nav li:hover ul ul,
#primary-nav li:hover ul ul ul,
#primary-nav li:hover ul ul ul ul,
#primary-nav li.menuparenth ul,
#primary-nav li.menuparenth ul ul {
display: none;
}
#primary-nav li.menuparenth ul ul ul {
display: none;
}
#primary-nav li.menuparenth ul ul ul ul {
display: none;
}
/* add
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul,
#primary-nav ul li:hover ul,
#primary-nav ul ul li:hover ul,
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul ul li:hover ul,
#primary-nav li.menuparenth ul,
#primary-nav ul li.menuparenth ul,
#primary-nav ul ul li.menuparenth ul {
display: block;
}
#primary-nav ul ul ul li.menuparenth ul {
display: block;
}
#primary-nav ul ul ul ul li.menuparenth ul {
display: block;
}
/* IE Hacks */
#primary-nav li li {
float: left;
clear: both;
}
#primary-nav li li a {
height: 1%;
}
The drop down shows under the pics?! I mean the menu is behaind the text and pics ect. . .? How to fix that?
You also get the long border included. How to delete that one, only at when you see the drop-down?
How can i just add the drop-down without anything to see wierd when hover?!
Take alook:
http://rolunda.pantherahost.com/index.p ... =Produkter
Point at the "Produkter" with your mouse.