Bonjour à tous
Je fait ma première page html/css. j'ai récuperé le menu que vous proposez à la page http://www.frogweb.fr/menu-deroulant-horizontal/ que j'ai réussi à modifier a ma sauce
j'ai ensuite réussi a faire une page de bloc:
css:
et je voudrais des bouton du menu ouvrir une page html dans la boite div#boite_contenu mais cela ne marche pas
html
j'ai eu beau chercher sur internet je ne trouve pas, si quelqu'un pouvait m'aider cela serait sympa.
merci d'avance
Je fait ma première page html/css. j'ai récuperé le menu que vous proposez à la page http://www.frogweb.fr/menu-deroulant-horizontal/ que j'ai réussi à modifier a ma sauce
j'ai ensuite réussi a faire une page de bloc:
css:
div#boite_menu {
width:100%;
height:50px;
background-color:#00CCFF;
}
div#boite_gauche {
float:left;
width:20%;
height:400px;
background-color:#FF6699;
}
div#boite_troisD {
width:100%;
height:200px;
background-color:#66CC33;
}
div#boite_necessaire {
width:100%;
height:200px;
background-color:#CC99CC;
}
div#boite_contenu {
width:80%;
height:400px;
background-color:#FFCC00;
float:left;
}
div#boite_contenu:target {
width:80%;
height:400px;
background-color:black;
float:left;
}
div#boite_piedpage {
width:100%;
height:50px;
background-color:#33FF99;
clear:both;
}
et je voudrais des bouton du menu ouvrir une page html dans la boite div#boite_contenu mais cela ne marche pas
html
<li><a href="toto.html#boite_contenu:target">toto</a></li>
j'ai eu beau chercher sur internet je ne trouve pas, si quelqu'un pouvait m'aider cela serait sympa.
merci d'avance
) mais peu importe, un menu déroulant est un menu déroulant.
). On clique sur un lien dont l'attribut href contient une ancre href="page.html#ancre", l'adresse devient donc blah.domain.com/page.html#ancre et dans cette page page.html il y a un élément avec un attribut id="ancre" (sans le #). Cet élément sera stylé par le sélecteur (et la règle) CSS :target { propriété: valeur; }