ragazzi stò preparandi un menù cioè banner sopra e menù a sinistra con tutti i pulsanti ecc in css in modo da inserirlo su tutte le pagine e se voglio modificare qualche pulsante o cambiare banner modificando il css me lo modifica in tutto il sito.. Ma non riesco a inserire una innagine!![]()
questo è il mio style premetto che è un css già fatto io lo stò modificando, ma non riesco ad inserirci un immagine che mi faccia da banner, ma dove va messa? E il comando come è? Grazie mille...!
body{
background-color: #fff;
position: absolute;
left: 50%; top: 15px;
width: 750px; height: auto;
margin: 0 0 0 -375px; padding:0;
font: 1em arial, sans-serif;
color: #000;
text-align: left;
}
/* The header at the top. */
#header{
position: relative;
left: 0; top: 0;
width: 100%; height: 75px;
background-color: #fff;
text-align: left;
z-index: 2;
}
/* Styles the <H1> tag which is in the header div. */
#header h1{
margin: 0 0 0 0; padding: 0 0 0 15px;
font: 3em georgia, sans-serif;
background-color: transparent;
z-index: 3;
}
/* Styles the word red (#word1) Works only with <H1> and <H2>. */
h1 .word1, h3 .word1{
color: red;
}
/* Styles the word black (#word2) Works only with <H1> and <H2>. */
h1 .word2, h3 .word2{
color: black;
}
/* Styles menu-sinistra. */
#menu{
position: absolute;
left: 0; top: 75px;
width: 150px; height: auto;
padding: 1px 0 0 0;
background-color: #eee;
z-index: 1;
}
/* Styles grandezza menu. */
#menu ul{
margin: 0; padding: 0;
list-style: none;
font: 0.8em verdana, sans-serif;
background-color: #eee;
}
/* Styles separatori menu. */
#menu ul li{
display: block;
margin: 0 0 1px 0; padding: 3px 3px 3px 3px;
background-color: #fff;
}
/* Gives effetti bottoni. */
#menu ul li:hover{
margin: 0 0 1px 0; padding: 2px 3px 2px 3px;
border-top: 1px #ccc solid; border-bottom: 1px #ccc solid;
background-color: #fff;
}
/* Styles colore link bottoni. */
#menu ul li a{
display: block;
color: reed;
text-decoration: none;
}
/* Gives the link a hover-effect. */
#menu ul li a:hover{
color: black;
}
/* Styles and positions the content-holder. */
#content{
position: absolute;
left: 150px; top: 75px;
width: 600px; height: auto;
background-color: #fff;
border-left: 1px #ccc solid; border-top: 1px #ccc solid;
padding-bottom: 4px;
z-index: 0;
}
/* Styles the Header (<h3>). */
#content h3{
display: block;
font: 1.6em georgia, serif;
color: #000;
margin: 1em 0 0 1em; padding: 0 0 .4em 0;
border-bottom: 1px #ddd solid;
}
/* Styles the paragraphs (
) in #content. */
#content p{
display: block;
margin: .6em 1em 0 2.4em; padding: 0 0 .6em 0;
font: .8em arial, sans-serif;
text-align: justify;
text-indent: .8em;
line-height: 1.4em;
}
/* Styles the links within the #content. */
#content a{
color: black;
text-decoration: none;
border-bottom: 1px red solid;
}
/* Gives the links a hover effect. */
#content a:hover{
color: red;
text-decoration: none;
border-bottom: none;
}
/* The footer. */
#footer{
position: relative;
width: 100%; height: auto;
font: .8em verdana, sans-serif;
color: #ccc;
margin-top: 20px;
padding: 5px;
text-align: right;
border-top: 1px #ccc solid;
}
/* Styles the <acronym> tag. */
acronym{
border-bottom: 0px #000 dotted;
cursor: help;
}

Rispondi quotando
