Back to top

Autore Topic: Icona del menu  (Letto 1241 volte)

Offline sceltarapida

  • Nuovo arrivato
  • *
  • Post: 5
    • Mostra profilo
Icona del menu
« il: 23 Nov 2008, 14:03:30 »
Salve a tutti,
vorrei sapere come posso aggiungere un'icona prima del nome del menu principale, utente e risorse...ho letto come si fa per le voci del menu, ma io voglio aggiungerla solo accanto al titolo del menu, tanto per rendere il sito più colorato..
grazie!



Offline tonicopi

  • Global Moderator
  • Instancabile
  • ********
  • Post: 12790
  • Sesso: Maschio
    • Mostra profilo
Re: Icona del menu
« Risposta #1 il: 23 Nov 2008, 17:34:17 »
Si può fare in diversi modi. Io qui
http://www.claudiorizzato.eu/pd/
ho inserito l'immagine modificando direttamente l'immagine che compone il rettangolo con i bordi arrotondati del menù.

Oppure puoi farlo dai css. Per il template milkyway il comando sarebbe questo nel file template.css (riga 590):
Codice: [Seleziona]
div.module_menu h3 {
color:#EEEEEE;
font-family:Helvetica,Arial,sans-serif;
font-size:12px;
font-weight:bold;
margin:-23px -4px 5px -5px;
padding-bottom:2px;
padding-left:25px;
}
bisognerebbe aggiungerci una riga per caricare l'immagine tipo
Codice: [Seleziona]
background:transparent url(../images/tuaimmagine.jpg) no-repeat scroll 0 0;
:)
joomlacsszengarden.com = il giardino dei css di Joomla!
L'attesa del piacere è essa stessa... piacere!

Offline sceltarapida

  • Nuovo arrivato
  • *
  • Post: 5
    • Mostra profilo
Re: Icona del menu
« Risposta #2 il: 26 Nov 2008, 11:30:12 »
Grazie..in realtà sto lavorando su un altro template che ha un css impostato in modo diverso...e non sono molto pratico...non riesco neanche a cambiare il colore delle voci del menu, l'ho cambiato in diversi punti ma non era mai quello giusto, becco sempre altre voci di altre cose...


*------------------------------------------------------------------------
# JoomlAxe CSS
# ------------------------------------------------------------------------
# Copyright (C) 2008 JoomlAxe.
# @license - GPU/GPL
# Author: Spy2furious@gmail.com
# Websites:  http://www.joomlaxe.com
# This file may be redistributed or editted in whole or significant part.
-------------------------------------------------------------------------*/
html, body, form, fieldset {
   margin: 0;
   padding: 0;
}

body {
   background: #FFFFFF;
   color: #888;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 11px;
   line-height: 1.5em;
}

/* Normal link */
a:link, a:visited {
   color: #7AB800;
   font-size: 11px;
   text-decoration: underline;
}

a:hover, a:active {
   text-decoration: none;
}

a img {
   border: none;
}

/* Heading */
h1 {font-size: 200%;}
h2 {font-size: 175%;}
h3 {font-size: 150%;}
h4 {font-size: 125%;}

p, pre, blockquote, ul, ol, h1, h2, h3, h4, h5, h6 {
   margin: 5px 0;
   padding: 0;
}

ul {
   list-style: none;
}

ul li {
   padding-left: 0px;
}

ol li {
   margin-left: 35px;
}

th {
   font-weight: bold;
   padding: 8px;
   text-align: left;
}

fieldset {
   padding: 5px 5px;
   border: none;
}

fieldset a {
   font-weight: bold;
}

fieldset.input {
   padding: 0;
   background: none;
}

textarea{
   width: 700px;
   border: none;
   background-color: #EEE;
   padding: 5px;

}
hr {
   border-bottom: 0;
   border-left: 0;
   border-right: 0;
   border-top: 1px solid #EEEEEE;
   height: 1px;
}

br {
   height: 1px;
   font-size: 1px;
}

td, th, div {
   font-size: 100%;
   text-align: left;
}

.containerheader{
   width: 950px;
   margin: 0 auto;
}

.container{
   width: 950px;
   margin: 0 auto;
   overflow: hidden;
}

/*================================ HEADER ============================*/
.headerbg{
   width: 100%;
   margin-top: 35px;
}

.headerbg1{
   width: 180px;
   padding-left: 770px;
   height: 30px;
}

.headerbg2{
   width : 950px;
   height: 93px;
}

.headerbg21{
   width: 300px;
   float: left;
   height: 93px;
}

.headerbg22{
   width: 650px;
   padding-top: 20px;
   float: left;

}
/*============================ ROUNDED SEPARATOR =======================*/
.roundedmodulebg{
   width: 100%;
   overflow: hidden;
   margin-top: 20px;
}

.roundedmodule1{
   width: 950px;
   background-color: #EFEFEF;
   background-image: url(../images/roundedkiriatas.gif);
   background-position: left top;
   background-repeat: no-repeat;
}

.roundedmodule2{
   width: 100%px;
   background-image: url(../images/roundedkananatas.gif);
   background-position: right top;
   background-repeat: no-repeat;
}

.roundedmodule3{
   width: 100%px;
   background-image: url(../images/roundedkiribawah.gif);
   background-position: left bottom;
   background-repeat: no-repeat;
}

.roundedmodule4{
   width: 100%px;
   background-image: url(../images/roundedkananbawah.gif);
   background-position: right bottom;
   background-repeat: no-repeat;
   padding: 5px;
}


/*================================ MAINBODY ============================*/
.mainbodybg{
   margin-top: 20px;
}
/*Left*/
.columnkiri{
   width: 200px;
   float: left;
   
}
/*Center*/
.columntengah{
   width: 510px;
   float: left;
   margin-left: 20px;
}

#pathway{
   margin-bottom: 10px;
}

/*Right*/
.columnkanan{
   width: 200px;
   float: left;
   margin-left: 20px;
   
}
/*================================ FOOTER ============================*/
.footerbg1{
   width: 100%;
   color: #888;
   border-top: 3px solid #EEE;
   padding-top: 10px;
   margin-top: 10px;
   height: 17px;
}
/*============================== COPYRIGHT ============================*/
.copyrightbg{
   width: 100%;
   padding: 0px 0px 10px 0px;
}

.copyright{
   text-align: left
}

.copyright span{
   color: #7AB800;
}
« Ultima modifica: 26 Nov 2008, 11:34:37 da sceltarapida »

Offline tonicopi

  • Global Moderator
  • Instancabile
  • ********
  • Post: 12790
  • Sesso: Maschio
    • Mostra profilo
Re: Icona del menu
« Risposta #3 il: 26 Nov 2008, 12:12:53 »
L'immagine la devi mettere qui nel file suffix.css (riga 243):
Codice: [Seleziona]
.module-box-menu a:link, .module-box-menu a:visited
joomlacsszengarden.com = il giardino dei css di Joomla!
L'attesa del piacere è essa stessa... piacere!

 



Web Design Bolzano Kreatif