Crysy
|
Hi all,
i have create a top menu with différent image image :
CSS :
/* menu Images */
.menu_image
{
float: right;
margin: 0px;
border: 0px;
padding-top: 0px
height: 0px;
width: 986px;
text-decoration: none;
}
/* end Header */
.menu_btn_1 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn1-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:151px;
height:45px;
padding-top:0px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
text-align:center;
text-decoration: none;
}
.menu_btn_1 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn1-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_1 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn1-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_2 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn2-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_2 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn2-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_2 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn2-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_3 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn3-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_3 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn3-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_3 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn3-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_4 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn4-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_4 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn4-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_4 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn4-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_5 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn5-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_5 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn5-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_5 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn5-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_6 a {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn6-1.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_6 a:hover {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight:bold;
color: #ffffff;
background-image: url(../images/btn6-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
.menu_btn_6 active {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight:bold;
background-image: url(../images/btn6-2.jpg);
background-repeat: no-repeat;
background-position: center center;
float:left;
width:150px;
height:45px;
padding-top:0px;
text-align:center;
text-decoration: none;
}
HTML :
<div class="menu-image">
<div class="menu_btn_1"><a href="../index.php/mission.html" ><div style="margin-top:13px;"> ENTREPRISE</div>
</a></div>
<div class="menu_btn_2"><a href="../index.php/conseil-architecture.html">
<div style="margin-top:8px;">
CONSEIL<br />
ARCHITECTURE </div>
</a></div>
<div class="menu_btn_3"><a href="../index.php/ingenieurie-mise-en-oeuvre.html">
<div style="margin-top:8px;">
INGÉNIERIE<br />
MISE EN OEUVRE </div></a>
</div>
<div class="menu_btn_4"><a href="../index.php/service-desk.html">
<div style="margin-top:13px;">
SERVICE DESK </div>
</a></div>
<div class="menu_btn_5"><a href="../index.php/actualites.html">
<div style="margin-top:13px;">
ACTUALITÉ </div>
</a></div>
<div class="menu_btn_6"><a href="../index.php/emploi.html">
<div style="margin-top:13px;">
EMPLOI </div>
</a> </div>
</div>
hi have a little bug, i show a texte-decoration underline but i don't want it ...? Can you see if i do an error in my code ?
Thank you for your feed back.
Crysy
|