codice:
@charset "utf-8"; body { margin: 0; padding: 0; background: #141414; } /*Inizio CSS Menu orizzontale principale*/ .wrapper { width: 100%; height: 80px; background : #464646; background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69))); background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69)); position: relative; } .title { position: absolute; right: 20px; top: 10px; font-size: 18px; text-transform: uppercase; } .container { width: 1050px; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; } .menu { height: 80px; float: none; } a { text-decoration: none; color: #333333; text-transform: uppercase; font-size: 15px; font-weight: bold; } ul { margin: 0; padding: 0; } ul.menu li { list-style: none; float: left; height: 79px; text-align: center; font-family: Arial; font-size: 14px; text-shadow: 0 1px 1px rgba(255,255,255,0.4); color: #262626; background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78,1)) ); background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78,1) 100%); background: -o-radial-gradient(center bottom, ellipse cover, rgba(31,169,244,1) 0%,rgba(0,28,78,1) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center bottom, ellipse cover, rgba(31,169,244,1) 0%,rgba(0,28,78,1) 100%); /* IE10+ */ background: radial-gradient(ellipse at center bottom, rgba(31,169,244,1) 0%,rgba(0,28,78,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1fa9f4', endColorstr='#001c4e',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */ } ul li a { display: block; padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(0,0,0,0.1); text-align: center; line-height: 79px; -webkit-transition-property: background; -webkit-transition-duration: 700ms; -moz-transition-property: background; -moz-transition-duration: 700ms; -ms-transision-property: background; -ms-transition-duration: 700ms; background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69))); background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69)); } ul li a:hover { background: transparent none; } ul[rel=sam1] li a { background: #606060; } ul[rel=sam1] li a:hover { background: transparent none; } ul li.active a{ background: rgb(173,0,0); color: #FFF; } Fine CSS Menu orizzontale principale