PD. 1: Este menú lo realiacé para salir del apuro, mi intención es aprender CSS en un par de semanas (menos presionado).
PD. 2 Es una comunidad excelente, llevo años consultando sus tips, y bueno, por fin me registré, sos unos grosos, gracias por todo!!!
Saludos!!!!
Dejo el codigo:
Código CSS:
Ver original
ul#css3menu1,ul#css3menu1 ul{ background-color:#dedede;border-width:1px;border-style:solid;border-color:#5f5f5f;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;} ul#css3menu1 ul{ display:none;position:absolute;left:0;top:100%;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";opacity:0.9;-moz-box-shadow:3.5px 3.5px 5px #000000;-webkit-box-shadow:3.5px 3.5px 5px #000000;box-shadow:3.5px 3.5px 5px #000000;background-color:#c6c6c6;border-radius:7px;-moz-border-radius:7px;-webkit-border-radius:7px;border-color:#d4d4d4;padding:0 10px 10px;filter:alpha(opacity=90)} ul#css3menu1 li:hover>*{ display:block;} ul#css3menu1 li{ position:relative;display:block;white-space:nowrap;font-size:0;float:left;} ul#css3menu1 li:hover{ z-index:1;} ul#css3menu1 ul ul{ position:absolute;left:100%;top:0;opacity:1;} ul#css3menu1{ font-size:0;z-index:999;position:relative;display:inline-block;zoom:1;padding:0; *display:inline;} * html ul#css3menu1 li a{ display:inline-block;} ul#css3menu1>li{ margin:0;} ul#css3menu1 a:active, ul#css3menu1 a:focus{ outline-style:none;} ul#css3menu1 a{ display:block;vertical-align:middle;text-align:center;text-decoration:none;font:bold 14px "Palatino Linotype","Book Antiqua",Palatino,serif;color:#000000;text-shadow:#FFF 0 0 1px;cursor:pointer;padding:2px 9px 2px 9px;background-color:#c1c1c1;background-image:url("mainbk.png");background-repeat:repeat;background-position:0 0;border-width:0 0 0 1px;border-style:solid;border-color:#C0C0C0;} ul#css3menu1 ul li{ float:none;margin:10px 0 0;} ul#css3menu1 ul a{ text-align:left;padding:4px;background-color:#c6c6c6;background-image:none;border-width:0;border-radius:7px;-moz-border-radius:7px;-webkit-border-radius:7px;font:13px "Palatino Linotype","Book Antiqua",Palatino,serif;color:#000000;text-decoration:none;} ul#css3menu1 li:hover>a,ul#css3menu1 li a.pressed{ background-color:#c6c6c6;border-color:#C0C0C0;border-style:solid;color:#000000;text-shadow:#FFF 0 0 1px;background-image:url("mainbk.png");background-position:0 100px;} ul#css3menu1 span{ display:block;overflow:visible;background-position:right center;background-repeat:no-repeat;padding-right:0px;} ul#css3menu1 ul span{ background-image:url("arrowsub.png");padding-right:12px;} ul#css3menu1 > li.switch{ display:none;cursor:pointer;width:25px;height:20px;padding:2px 9px 2px 9px;} ul#css3menu1 > li.switch:before{ content:"";position:absolute;display:block;height:4px;width:25px;border-radius:4px;background:#000000;-moz-box-shadow:0 8px #000000, 0 16px #000000;-webkit-box-shadow:0 8px #000000, 0 16px #000000;box-shadow:0 8px #000000, 0 16px #000000;} ul#css3menu1 > li.switch:hover:before{ background:#000000;-moz-box-shadow:0 8px #000000, 0 16px #000000;-webkit-box-shadow:0 8px #000000, 0 16px #000000;box-shadow:0 8px #000000, 0 16px #000000;} .c3m-switch-input{ display:none;} ul#css3menu1 li:hover>a,ul#css3menu1 li > a.pressed{ background-color:#c6c6c6;background-image:url("mainbk.png");background-position:0 100px;border-style:solid;border-color:#C0C0C0;color:#000000;text-decoration:none;text-shadow:#FFF 0 0 1px;} ul#css3menu1 ul li:hover>a,ul#css3menu1 ul li > a.pressed{ background-color:#dddddd;background-image:none;color:#000000;text-decoration:none;} ul#css3menu1 li.topfirst>a{ border-radius:7px 0 0 7px;-moz-border-radius:7px 0 0 7px;-webkit-border-radius:7px;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;} ul#css3menu1 li.toplast>a{ border-radius:0 7px 7px 0;-moz-border-radius:0 7px 7px 0;-webkit-border-radius:0;-webkit-border-top-right-radius:7px;-webkit-border-bottom-right-radius:7px;} @media screen and (max-width: 785px) { ul#css3menu1 > li { position: initial;} ul#css3menu1 ul .submenu,ul#css3menu1 li > ul { left: 0; right:auto; top: 100%;} ul#css3menu1 .submenu,ul#css3menu1 ul,ul#css3menu1 .column { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;padding-right: 0;width: 100% !important;} } @media screen and (max-width: 784px) { ul#css3menu1 { width: 100%;} ul#css3menu1 > li { display: none; position: relative;width: 100% !important;} ul#css3menu1 > li.switch,.c3m-switch-input:checked + ul#css3menu1 > li + li { display: block;} ul#css3menu1 > li.switch > label { position: absolute;cursor: pointer;top: 0;left: 0;right: 0;bottom: 0;} }