vorrei ottenere questo risultato:
http://www.exploding-boy.com/2005/12...cal-css-menus/
il background verde va da sinistra a destra , senza margini.
invece io ho ottenuto questo:
http://imageshack.us/photo/my-images...atturaakc.png/
(ingrandite per vedere i magini bianchi fra sfondo beige e pagina)
ecco il codice:
<!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 content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Nuovo sito</title>
<style type="text/css">
body
{
font-size:14px; color:#000000;
font-family:Arial, Helvetica, sans-serif;
}
.container
{
width:950px;
margin:20px auto;
margin-top: -10px;
}
.container1
{
width:100%;
height:135px;
}
.header
{
text-align:center;
background: #EEE3CA;
height:135px;
padding:0px;
border-style:solid;
border-width:1px;
border-color: gray;
}
.content
{
float:left;
width:950px;
text-align:center;
height:1100px;
background:white;
text-align: justify;
}
.footer
{
clear:both;
text-align:center;
background: #EFE8BE;
color:gray;
height:25px;
}
h2 {font-weight:bold; color:#000099; margin:10px 0px; }
p span {color:#006600; font-weight:bold; }
a, a:link, a:visited {color:#0000FF;}
textarea {width: 100%; padding: 10px; margin: 10px 0 15px 0; font-size: 13px; font-family: Consolas,monospace;}
textarea.html {height: 300px;}
p {margin: 0 0 10px 0;}
code, pre {font-family: Consolas,monospace; color: green;}
ol li {margin: 0 0 15px 0;}
#menu8 {
width: 200px;
margin-top: 10px;
}
#menu8 li a {
text-decoration: none;
height: 32px;
voice-family: "\"}\"";
voice-family: inherit;
height: 24px;
}
#menu8 li a:link, #menu8 li a:visited {
color: #777;
display: block;
background: url(images/menu8.gif);
padding: 8px 0 0 20px;
}
#menu8 li a:hover {
color: #257EB7;
background: url(images/menu8.gif) 0 -32px;
padding: 8px 0 0 25px;
}
#menu8 li a:active {
color: #fff;
background: url(images/menu8.gif) 0 -64px;
padding: 8px 0 0 25px;
}
#menu8 ul {
list-style: none;
margin: 0;
padding: 0;
}
</style> <style type="text/css">#cssmenu ul {margin: 0; padding: 7px 6px 0; background: #7d7d7d url(menu_assets/images/overlay.png) repeat-x 0 -110px; line-height: 100%; border-radius: 1em; font: normal .8em/1.5em Arial, Helvetica, sans-serif; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4); -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);}
#cssmenu li {margin: 0 5px; padding: 0 0 8px; float: left; position: relative; list-style: none; }
#cssmenu a,
#cssmenu a:link {font-weight: bold; color: #e7e5e5; text-decoration: none; display: block; padding: 8px 20px; margin: 0; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; text-shadow: 0 1px 1px rgba(0,0,0, .3); }
#cssmenu a:hover {background: #000; color: #fff;}
#cssmenu .active a,
#cssmenu li:hover > a {background: #666 url(menu_assets/images/overlay.png) repeat-x 0 -40px; color: #444; border-top: solid 1px #f8f8f8; -webkit-box-shadow: 0 1px 1px rgba(0,0,0, .2); -moz-box-shadow: 0 1px 1px rgba(0,0,0, .2); box-shadow: 0 1px 1px rgba(0,0,0, .2); text-shadow: 0 1px 0 rgba(255,255,255, 1); }
#cssmenu ul ul li:hover a,
#cssmenu li:hover li a {background: none; border: none; color: #666; -webkit-box-shadow: none; -moz-box-shadow: none;}
#cssmenu ul ul a:hover {background: #8f8f8f url(menu_assets/images/overlay.png) repeat-x 0 -100px !important; color: #fff !important; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; text-shadow: 0 1px 1px rgba(0,0,0, .1);}
#cssmenu li:hover > ul {display: block;}
#cssmenu ul ul {display: none; margin: 0; padding: 0; width: 185px; position: absolute; top: 40px; left: 0; background: #ddd url(menu_assets/images/overlay.png) repeat-x 0 0; border: solid 1px #b4b4b4; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3); -moz-box-shadow: 0 1px 3px rgba(0,0,0, .3); box-shadow: 0 1px 3px rgba(0,0,0, .3);}
#cssmenu ul ul li {float: none; margin: 0; padding: 3px; }
#cssmenu ul ul a {font-weight: normal; text-shadow: 0 1px 0 #fff; }
#cssmenu ul:after {content: '.'; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
* html #cssmenu ul {height: 1%;}
</style>
</head>
<body>
<div class="container1">
<div class="header">sito di prova</div>
</div>
<div class="container">
<div class="content">
<div id="cssmenu">
<ul>
<li class="active "><span>Home</span>
<li class="has-sub "><span>Products</span>
<ul>[*]<span>Product 1</span>[*]<span>Product 2</span>[/list]
[*]<span>About</span>[*]<span>Contact</span>[/list]
</div>
<div style="clear:both; margin: 0 0 30px 0;"> </div>
<div id="menu8">
<ul>[*]Home[*]About[*]Services[*]Portfolio[*]Store[*]Download Menu[/list]
</div>
</div>
<div class="footer"> </div>
</div>
</body>
</html>
come vedete ho creato un "container1" dove mettere l'header per escluderlo dalle proprietà del "container" che deve avere le proprietà per i margini laterali...però non ha funzionato![]()
Un grazie mille in anticipo a chi mi aiuterà!!

Rispondi quotando
