Menu dynamique
Hors ligneHwm86 Le 06/02/2009 à 14:35 Profil de Hwm86 Configuration de Hwm86

bjr..
SVP quelles sont les commandes pour creer un menu en html
Hors ligneTatave17 Le 06/02/2009 à 15:39 Profil de Tatave17 Configuration de Tatave17

Papi Bidouille
Bonjour
réduit a ça plus simple expression
# représente le lien que tu peux mettre
--------------------------------


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Document sans nom</title>
</head>

<body>

horizontal
<div id="navbar1">
<a href="#">Bouton 1</a>
<a href="#">
Bouton 2</a>
<a href="#">
Bouton 3</a>
</div>

</br>
vertical
<div id="navbar1">

<a href="#">Bouton 1</a></br>
<a href="#">Bouton 2</a></br>
<a href="#">Bouton 3</a></br>
</div>
</body>

</html>

----------------------------------------------------
avec un peut de couleurs
----------------------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Document sans nom</title>
<style type="text/css">
div#navbar2 {
    height: 30px;
    width: 100%;
    border-top: solid #000 1px;
    border-bottom: solid #000 1px;
    background-color: #336699;
}
div#navbar2 ul {
    margin: 0px;
    padding: 0px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    color: #000;
    line-height: 30px;
    white-space: nowrap;
}
div#navbar2 li {
    list-style-type: none;
    display: inline;
}
div#navbar2 li a {
    text-decoration: none;
    padding: 7px 10px;
    color: #FFF;
}
div#navbar2 li a:link {
    color: #FFF:
}
div#navbar2 li a:visited {
    color: #CCC;
}
div#navbar2 li a:hover {
    color: #FFF;
    background-color: #3366FF;
}

/*---------------------------*/
div#navbar1 {
    height: 90px;
    width: 63px;
    border-top: solid #000 1px;
    border-bottom: solid #000 1px;
    background-color: #336699;
}
div#navbar1 ul {
    margin: 0px;
    padding: 0px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    color: #000;
    line-height: 30px;
    white-space: nowrap;
}
div#navbar1 li {
    list-style-type: none;
    display: inline;
}
div#navbar1 li a {
    text-decoration: none;
    padding: 7px 10px;
    color: #FFF;
}
div#navbar1 li a:link {
    color: #FFF:
}
div#navbar1 li a:visited {
    color: #CCC;
}
div#navbar1 li a:hover {
    color: #FFF;
    background-color: #3366FF;
}


</style>
</head>


<body>
<div id="navbar2">

<ul>
<li>
<a href="#">Bouton 1</a></li>
<li><a href="#">Bouton 2</a></li>
<li><a href="#">Bouton 3</a></li>
</ul>
</div>

<br><br>
<div id="navbar1">
<ul>
<li>
<a href="#">Bouton 1</a></li><br>
<li>
<a href="#">Bouton 2</a></li><br>
<li>
<a href="#">Bouton 3</a></li><br>
</ul>

</div>

</body>

</html>

@+
--
[couleur=#00CC66]N' oubliez pas de presser sur le bouton " Réponse accepté "à côté de la solution apportée si elle te convient[/couleur] [couleur=#0066FF]On aide plus un être en lui donnant de lui-même une image favorable qu'en le mettant sans cesse en face de ses défauts. "Albert Camus"[/couleur]
Vous avez résolu votre problème avec VIC ? Faites-le savoir sur les réseaux sociaux !
Vulgarisation-informatique.com
Cours en informatique & tutoriels