Joomla.it Forum
Joomla! 3 => I Template di Joomla! 3 => : umboz 19 Apr 2016, 11:37:44
-
Salve a tutti sto utilizzando il template hydrogen di gantry 5. Vorrei poter inserire un background in tutte le parti del layout. Dopo svariati tentativi e consigli ho creato la cartella scss dentro la cartella custom del template, all'interno del quale ho creato il file custom.scss. Ho creato la mia regola:
.umbo {
Background-image: url("/joomla/templates/g5_hydrogen/images/ipad.png");
Background-position: center;
Background-repeat: no-repeat;
}
dopo sono andato nelle opzioni dello showcase e ho scritto nel campo CSS CLASSES umbo( nome della regola).
ho ricompilato il css nella sezione styles ma purtroppo il file si vede ripetuto e non centrato. Qualche soluzione? Il sito in prova č questo: http://misterbiscottinoprova.altervista.org/joomla/ (http://misterbiscottinoprova.altervista.org/joomla/)
-
Ciao umboz,
prova cosė:
.umbo .section-background {
Background-image: url('../../../../joomla/templates/g5_hydrogen/images/ipad.png');
Background-position: center;
Background-repeat: no-repeat;
}
o cosė:
.umbo .section-background { background-position: center center; background-repeat: no-repeat;}
-
Sei un genio! Risolto con il primo codice! ma se volessi che l'immagine si adattasse allo spazio senza lasciare margini??
Metto risolto. Grazie ancora!
-
Prova cosė:
.umbo .section-background { background-position: center center; background-repeat: no-repeat; background-size: cover;}
-
Grande! solo che c'č un problemino su mobile non č adattata. diciamo che potrebbe andare bene anche cosė ma se riuscissimo ad adattarla sarebbe il massimo.
-
Mmmm, dovresti scrivere un css @media ma dato che lo spazio č molto lungo e stretto non so come potresti fare per adattarla.
-
Mm ho capito ti ringrazio lo stesso per il grande aiuto ;D ;D
Ma nessun altro ha una soluzione?