Foros del Web » Creando para Internet » CSS »

Centrar menu horizontal de SuperFish

Estas en el tema de Centrar menu horizontal de SuperFish en el foro de CSS en Foros del Web. Cordial saludo, Trato de centrar un menu horizontal realizado en SuperFish, siempre me queda alineado a la izquierda. Bueno he buscado en cuanto hilo encuentro ...
  #1 (permalink)  
Antiguo 15/04/2012, 09:56
 
Fecha de Ingreso: abril-2012
Mensajes: 1
Antigüedad: 12 años
Puntos: 0
Centrar menu horizontal de SuperFish

Cordial saludo, Trato de centrar un menu horizontal realizado en SuperFish, siempre me queda alineado a la izquierda.

Bueno he buscado en cuanto hilo encuentro que tratan el tema, pero no llego a una solucion.


una vista del menu http://www.flickr.com/photos/31156470@N00/6934247836/

Agradezco sus respuestas.

adjunto superFish.css

--------------------------------------------------------------------------------------------------------
/*** ESSENTIAL STYLES ***/
.jt-menu, .jt-menu * {
margin: 0;
padding: 0;
list-style: none;
}
.jt-menu {
line-height: 1.0;
}
.jt-menu ul {
position: absolute;
top: -999em;
width: 10em; /* left offset of submenus need to match (see below) */
}
.jt-menu ul li {
width: 100%;
}
.jt-menu li:hover {
visibility: inherit; /* fixes IE7 'sticky bug' */
}
.jt-menu li {
float: left;
position: relative;
}
.jt-menu a {
display: block;
position: relative;
}
.jt-menu li:hover ul,
.jt-menu li.sfHover ul {
left: 0;
top: 2.5em; /* match top ul list item height */
z-index: 99;
}
ul.jt-menu li:hover li ul,
ul.jt-menu li.sfHover li ul {
top: -999em;
}
ul.jt-menu li li:hover ul,
ul.jt-menu li li.sfHover ul {
left: 10em; /* match ul width */
top: 0;
}
ul.jt-menu li li:hover li ul,
ul.jt-menu li li.sfHover li ul {
top: -999em;
}
ul.jt-menu li li li:hover ul,
ul.jt-menu li li li.sfHover ul {
left: 10em; /* match ul width */
top: 0;
}

/*** DEMO SKIN ***/
.jt-menu {
float: left;
margin-bottom: 1em;
}
.jt-menu a {
border-left: 1px solid #fff;
border-top: 1px solid #CFDEFF;
padding: .75em 1em;
text-decoration:none;
}
.jt-menu a, .jt-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/
color: #13a;
}
.jt-menu li {
background: #BDD2FF;
}
.jt-menu li li {
background: #AABDE6;
}
.jt-menu li li li {
background: #9AAEDB;
}
.jt-menu li:hover, .jt-menu li.sfHover,
.jt-menu a:focus, .jt-menu a:hover, .jt-menu a:active {
background: #CFDEFF;
outline: 0;
}

/*** arrows **/
.jt-menu a.sf-with-ul {
padding-right: 2.25em;
min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
}
.sf-sub-indicator {
position: absolute;
display: block;
right: .75em;
top: 1.05em; /* IE6 only */
width: 10px;
height: 10px;
text-indent: -999em;
overflow: hidden;
background: url('../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
}
a > .sf-sub-indicator { /* give all except IE6 the correct values */
top: .8em;
background-position: 0 -100px; /* use translucent arrow for modern browsers*/
}
/* apply hovers to modern browsers */
a:focus > .sf-sub-indicator,
a:hover > .sf-sub-indicator,
a:active > .sf-sub-indicator,
li:hover > a > .sf-sub-indicator,
li.sfHover > a > .sf-sub-indicator {
background-position: -10px -100px; /* arrow hovers for modern browsers*/
}

/* point right for anchors in subs */
.jt-menu ul .sf-sub-indicator { background-position: -10px 0; }
.jt-menu ul a > .sf-sub-indicator { background-position: 0 0; }
/* apply hovers to modern browsers */
.jt-menu ul a:focus > .sf-sub-indicator,
.jt-menu ul a:hover > .sf-sub-indicator,
.jt-menu ul a:active > .sf-sub-indicator,
.jt-menu ul li:hover > a > .sf-sub-indicator,
.jt-menu ul li.sfHover > a > .sf-sub-indicator {
background-position: -10px 0; /* arrow hovers for modern browsers*/
}

/*** shadows for all but IE6 ***/
.sf-shadow ul {
background: url('../images/shadow.png') no-repeat bottom right;
padding: 0 8px 9px 0;
-moz-border-radius-bottomleft: 17px;
-moz-border-radius-topright: 17px;
-webkit-border-top-right-radius: 17px;
-webkit-border-bottom-left-radius: 17px;
}
.sf-shadow ul.sf-shadow-off {
background: transparent;
}


--------------------------------------------------------------------------------------------------------
  #2 (permalink)  
Antiguo 17/04/2012, 00:31
Avatar de C2am  
Fecha de Ingreso: enero-2009
Ubicación: Rosario, Argentina
Mensajes: 2.005
Antigüedad: 15 años, 3 meses
Puntos: 306
Respuesta: Centrar menu horizontal de SuperFish

Y cual es el html donde se aplica ese css???
__________________
El mundo nada puede contra un hombre que canta en la miseria.
-- Ernesto Sábato--

Etiquetas: css-ayuda, horizontal, menu-horizontal, php, superfish
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:31.