5546 sujets

Sémantique web et HTML

Bonjour, on doit réaliser un site en Projet et j'ai fait une super navbar avec Bootstrap ( animation et tout ) mais impossible de reussir a y rajouté un sous menu, quelqu'un pourrait-t'il m'aidez ?

Code HTML:

<head>

<meta charset="utf-8"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<link href="bootstrap/css/bootstrap.css" rel="stylesheet"/>

<link href="cssaccueil2.css" rel="stylesheet"/>

<link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:700" rel="stylesheet" />

</head>

<div class="container red topBotomBordersOut">

<a href="index.html">Accueil</a>

<a>La réalité virtuelle</a>

<a>Entreprises</a>

<a>Contact</a>

</div>

Code CSS:

@import 'https://fonts.googleapis.com/css?family=Raleway';

header h1

{

margin-top:0px;

color: #AAA;

font-size: 40px;

width:1024px;

font-weight: lighter;

}

div.container

{

font-family: Raleway;

margin: 0 auto;

padding: 2em 2em;

text-align: center;

}

div.container a

{

color: #FFF;

text-decoration: none;

font: 20px Raleway;

margin: 0px 10px;

padding: 10px 10px;

position: relative;

z-index: 0;

cursor: pointer;

}

header, .red

{

font-family: Raleway;

background: #7A7A7A;

}

div.topBotomBordersOut a:before, div.topBotomBordersOut a:after

{

position: absolute;

left: 0px;

width: 100%;

height: 2px;

background: #a8070e;

content: "";

opacity: 0;

transition: all 0.3s;

}

div.topBotomBordersOut a:before

{

top: 0px;

transform: translateY(10px);

}

div.topBotomBordersOut a:after

{

bottom: 0px;

transform: translateY(-10px);

}

div.topBotomBordersOut a:hover:before, div.topBotomBordersOut a:hover:after

{

opacity: 1;

transform: translateY(0px);

}

Pour info on doit rajouté un sous menu dans la partie La Réalité Virtuelle et il y a 3 sous menu du coup. Merci.
allan00958 a écrit :
Faudra aussi rectifier le 'html'. Un menu c'est 'ul' suivi des 'li' qui contient des 'a'.

Je mets moi aussi mes menus dans une liste, mais en réalité rien n'oblige à faire cela.