Back to top

Autore Topic: Adattare menu' a cascata  (Letto 1820 volte)

Offline gamlastand

  • Esploratore
  • **
  • Post: 62
    • Mostra profilo
Adattare menu' a cascata
« il: 16 Mar 2010, 18:00:24 »
Buona sera
ho caricato un menu a cascata :son-of-suckerfish-horizontal-1.0.2

non riesco a settarlo come voglio. Ho già smontato tutto il CSS pezzo per pezzo senza risultato.
Vorrei
1) Che i sottomenù venissero tutti della stessa lunghezza
2) Che il sottomenù si posasse sotto il menù principale e non appicccato sopra.

questo il link (per vedere i sottomenù come vengono ora cliccare su appetizers) www.ciaorecipes.com

Qui sotto copio il CSS. Su una guida Joomla ho trovato il riferimento a dove toccare il codice (http://wiki.joomla.it/index.php?title=Modulo_Extended_menu_per_creare_menu_a_discesa) ma non riesco a farlo funzionare.

/** IE bugs: a:link, a:visited, a:hover need to be styled as well; does not display separator... workaround? */
/** customize colors here */
a.mainlevel-son-of-suckerfish-horizontal, a.mainlevel_active-son-of-suckerfish-horizontal, a.mainlevel_current-son-of-suckerfish-horizontal,
a.mainlevel-son-of-suckerfish-horizontal:link, a.mainlevel_active-son-of-suckerfish-horizontal:link, a.mainlevel_current-son-of-suckerfish-horizontal:link,
a.mainlevel-son-of-suckerfish-horizontal:visited, a.mainlevel_active-son-of-suckerfish-horizontal:visited, a.mainlevel_current-son-of-suckerfish-horizontal:visited {
   background-color: white;
   color: white;
}
a.mainlevel-son-of-suckerfish-horizontal:hover, a.mainlevel_active-son-of-suckerfish-horizontal:hover,

a.mainlevel_current-son-of-suckerfish-horizontal:hover {
   background-color: #E0E0E0;
   color: red;
}

a.sublevel-son-of-suckerfish-horizontal, a.sublevel_active-son-of-suckerfish-horizontal, a.sublevel_current-son-of-suckerfish-horizontal,
a.sublevel-son-of-suckerfish-horizontal:link, a.sublevel_active-son-of-suckerfish-horizontal:link,

a.sublevel_current-son-of-suckerfish-horizontal:link,
a.sublevel-son-of-suckerfish-horizontal:visited, a.sublevel_active-son-of-suckerfish-horizontal:visited,

a.sublevel_current-son-of-suckerfish-horizontal:visited {
   background-color: white;
   color: white;
}
a.sublevel-son-of-suckerfish-horizontal:hover, a.sublevel_active-son-of-suckerfish-horizontal:hover,

a.sublevel_current-son-of-suckerfish-horizontal:hover {
   background-color: #E0E0E0;
   color: green;
}

ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel-son-of-suckerfish-horizontal, ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel_active-son-of-suckerfish-horizontal, ul.mainlevel-son-of-suckerfish-

horizontal ul ul a.sublevel_current-son-of-suckerfish-horizontal,
ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel-son-of-suckerfish-horizontal:link, ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel_active-son-of-suckerfish-horizontal:link, ul.mainlevel-son-of-suckerfish-

horizontal ul ul a.sublevel_current-son-of-suckerfish-horizontal:link,
ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel-son-of-suckerfish-horizontal:visited, ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel_active-son-of-suckerfish-horizontal:visited, ul.mainlevel-son-of-

suckerfish-horizontal ul ul a.sublevel_current-son-of-suckerfish-horizontal:visited {
   background-color: white;
   color: white;
}
ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel-son-of-suckerfish-horizontal:hover, ul.mainlevel-son-of-suckerfish-horizontal ul ul a.sublevel_active-son-of-suckerfish-horizontal:hover, ul.mainlevel-son-of-suckerfish-

horizontal ul ul a.sublevel_current-son-of-suckerfish-horizontal:hover {
   background-color: #E0E0E0;
   color: blue;
}
ul.mainlevel-son-of-suckerfish-horizontal .expanded {
   display: block;
   background-image: url('../images/arrow_down.gif');
   background-position: right center;
   background-repeat: no-repeat;
   padding-right: 1px
}
ul.mainlevel-son-of-suckerfish-horizontal ul .expanded {
   background-image: url('../images/arrow_right.gif');
}

a.mainlevel-son-of-suckerfish-horizontal, a.mainlevel_active-son-of-suckerfish-horizontal, a.mainlevel_current-son-of-suckerfish-horizontal, span.mainlevel-son-of-suckerfish-horizontal,
a.mainlevel-son-of-suckerfish-horizontal:link, a.mainlevel_active-son-of-suckerfish-horizontal:link,

a.mainlevel_current-son-of-suckerfish-horizontal:link,
a.mainlevel-son-of-suckerfish-horizontal:visited, a.mainlevel_active-son-of-suckerfish-horizontal:visited,

a.mainlevel_current-son-of-suckerfish-horizontal:visited,
a.mainlevel-son-of-suckerfish-horizontal:hover, a.mainlevel_active-son-of-suckerfish-horizontal:hover,

a.mainlevel_current-son-of-suckerfish-horizontal:hover,
a.sublevel-son-of-suckerfish-horizontal, a.sublevel_active-son-of-suckerfish-horizontal, a.sublevel_current-son-of-suckerfish-horizontal, span.sublevel-son-of-suckerfish-horizontal,
a.sublevel-son-of-suckerfish-horizontal:link, a.sublevel_active-son-of-suckerfish-horizontal:link,

a.sublevel_current-son-of-suckerfish-horizontal:link,
a.sublevel-son-of-suckerfish-horizontal:visited, a.sublevel_active-son-of-suckerfish-horizontal:visited,

a.sublevel_current-son-of-suckerfish-horizontal:visited,
a.sublevel-son-of-suckerfish-horizontal:hover, a.sublevel_active-son-of-suckerfish-horizontal:hover,

a.sublevel_current-son-of-suckerfish-horizontal:hover {
   font-weight: normal;
   font-size: 100%;
   text-align: left;
   text-decoration: none;
   display: block;
   border: 1px solid silver;
   padding: 0.3em 0.5em 0.3em 0.5em;   /* top, right, bottom, left */
}

a.mainlevel-son-of-suckerfish-horizontal, a.mainlevel_active-son-of-suckerfish-horizontal, a.mainlevel_current-son-of-suckerfish-horizontal, span.mainlevel-son-of-suckerfish-horizontal {
}

a.sublevel-son-of-suckerfish-horizontal, a.sublevel_active-son-of-suckerfish-horizontal, a.sublevel_current-son-of-suckerfish-horizontal, span.sublevel-son-of-suckerfish-horizontal {
   font-size: 90%;
   border-top: none;
   height: 1%;   /* this is required for the IE to cause the "hasLayout" property and make the whole anchor clickable - "Holly Hack" */
}

#active_menu-son-of-suckerfish-horizontal,
a.mainlevel_active-son-of-suckerfish-horizontal, a.mainlevel_current-son-of-suckerfish-horizontal,
a.mainlevel_active-son-of-suckerfish-horizontal:link, a.mainlevel_current-son-of-suckerfish-horizontal:link,
a.mainlevel_active-son-of-suckerfish-horizontal:visited, a.mainlevel_current-son-of-suckerfish-horizontal:visited,
a.mainlevel_active-son-of-suckerfish-horizontal:hover, a.mainlevel_current-son-of-suckerfish-horizontal:hover,
a.sublevel_active-son-of-suckerfish-horizontal, a.sublevel_current-son-of-suckerfish-horizontal,
a.sublevel_active-son-of-suckerfish-horizontal:link, a.sublevel_current-son-of-suckerfish-horizontal:link,
a.sublevel_active-son-of-suckerfish-horizontal:visited, a.sublevel_current-son-of-suckerfish-horizontal:visited,
a.sublevel_active-son-of-suckerfish-horizontal:hover, a.sublevel_current-son-of-suckerfish-horizontal:hover {
   font-weight: bold;
}

ul.mainlevel-son-of-suckerfish-horizontal, .mainlevel-son-of-suckerfish-horizontal ul {
   padding: 0;
   margin: 0;
   list-style: none;
   line-height: 1;
   z-index: 100;
}
ul.mainlevel-son-of-suckerfish-horizontal li {
   padding: 0;
   margin: 0;
   background: none;
   float: left;
}
ul.mainlevel-son-of-suckerfish-horizontal li li {
   position: relative;
   display: block;
   width: 10em;
}

ul.mainlevel-son-of-suckerfish-horizontal ul {
   display: block;
   position: absolute;
   left: -999em;
   margin: -0.2em 0 0 0em;
   width: auto;
   height: auto;
   z-index: 101;
}
ul.mainlevel-son-of-suckerfish-horizontal li li ul {
   margin: -1.8em 0 0 10em;
   z-index: 102;
}
/** IE7.0 workaround */
ul.mainlevel-son-of-suckerfish-horizontal li:hover, ul.mainlevel-son-of-suckerfish-horizontal li.hover {
   position: static;
}

/** general on-mouse-over display */

ul.mainlevel-son-of-suckerfish-horizontal li:hover ul,
ul.mainlevel-son-of-suckerfish-horizontal li.hover ul {
   left: 0em;
}

ul.mainlevel-son-of-suckerfish-horizontal li:hover ul ul,
ul.mainlevel-son-of-suckerfish-horizontal li.hover ul ul {
   left: auto;
}

ul.mainlevel-son-of-suckerfish-horizontal li:hover ul li:hover ul,
ul.mainlevel-son-of-suckerfish-horizontal li.hover ul li.hover ul {
   left: -999em;
}

ul.mainlevel-son-of-suckerfish-horizontal, ul.mainlevel-son-of-suckerfish-horizontal li li {
   clear: left;
}
/** separator */
span.mainlevel-son-of-suckerfish-horizontal, span.sublevel-son-of-suckerfish-horizontal {
   display: block;
   width: 1em;
   border-width: 0px;
   margin-left: 1em;
   padding: 0;
   padding-top: 1px;
}

/** IE5.0/win workaround: the ">" is handled like a "," */
ul.mainlevel-son-of-suckerfish-horizontal > ul.mainlevel-son-of-suckerfish-horizontal {
   position: absolute;
   top: 10em;   /* change the absolute position for IE5.0 here */
}
ul.mainlevel-son-of-suckerfish-horizontal > ul.mainlevel-son-of-suckerfish-horizontal li.hover ul {
   margin: 0.1em 0 0 0em;   /* top, right, bottom, left */
}
ul.mainlevel-son-of-suckerfish-horizontal > ul.mainlevel-son-of-suckerfish-horizontal li.hover ul ul {
   margin: -1.6em 0 0 10em;   /* top, right, bottom, left */
}


GRAZIEEEE

Offline tonicopi

  • Global Moderator
  • Instancabile
  • ********
  • Post: 12790
  • Sesso: Maschio
    • Mostra profilo
Re:Adattare menu' a cascata
« Risposta #1 il: 16 Mar 2010, 18:54:08 »
Non postare chilometri di codice gamlastand...
Hai provato con SwMwnuFree. Io mi ci trovo bene  ;)
joomlacsszengarden.com = il giardino dei css di Joomla!
L'attesa del piacere è essa stessa... piacere!

Offline gamlastand

  • Esploratore
  • **
  • Post: 62
    • Mostra profilo
Re:Adattare menu' a cascata
« Risposta #2 il: 16 Mar 2010, 20:25:40 »
Non postare chilometri di codice gamlastand...
Hai provato con SwMwnuFree. Io mi ci trovo bene  ;)

scusa hai ragione e che avevo paura di essere troppo "astratta"  e quindi poco chiara
Ok proverò un altro formato...
Grazie

 



Web Design Bolzano Kreatif