mon premier site avec html et css
4 messages Page 1 sur 1
mon premier site avec html et css
salut tlmnd. il est 4h00 du matin et je suis devant mon premier site avec html et css . http://www.maplante.comvoici ma feuille de style grace à http://www.html.net (merci).body {
background-color: #00ff00;
margin: 200px 200px 200px 200px;
h1 {
color: #990000;
background-color: #FC9804;
}
AIDEZ MOI SVP. POUR FAIRE UN MENU VERTICAL ET HORIZONTAL VISIBLE DANS TOUTES LES PAGES. MERCI.
Re: mon premier site avec html et css
voici le code pour construire un menu simpleStep 1 – HTML Markup
We will create an unordered list with a list item and an anchor tag for each menu link. To create the sub menu add another unordered list inside of the list.
<ul class="menu">
<li><a href="#">My dashboard</a></li>
<li><a href="#">Likes</a></li>
<li><a href="#">Views</a>
<ul>
<li><a href="#" class="documents">Documents</a></li>
<li><a href="#" class="messages">Messages</a></li>
<li><a href="#" class="signout">Sign Out</a></li>
</ul>
</li>
<li><a href="#">Uploads</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Documents</a></li>
</ul>
Step 2 – Menu Layout
We will start to remove the margin, padding, border and outline from all the elements of the menu. Then we will add a fixed width and height to the menu, rounded corners and the CSS3 gradients. To align the links horizontally we will float the lists to left. We also need to set the position to relative because we will need that to align the sub menus.
.menu,
.menu ul,
.menu li,
.menu a {
margin: 0;
padding: 0;
border: none;
outline: none;
}
.menu {
height: 40px;
width: 505px;
background: #4c4e5a;
background: -webkit-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
background: -moz-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
background: -o-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
background: -ms-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
background: linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.menu li {
position: relative;
list-style: none;
float: left;
display: block;
height: 40px;
}
Re: mon premier site avec html et css
bonjour,pas mal le site. j'ai une question.
j'ai cree un petit script avec un message qui defile de droite a gauche, comme la bande defilante sur la TV CNN ou Euronews en bas.
mon prob c'est que j'utilise ca pour le boulot et j'ai aps droit d'installer quoi que ce soit comme programme.
j'ai un disque reseau partagé sur plusieurs VM et je veux qu'une personne alimente les info que je met dans la bande defilante sans y acceder au script.
resumé: c'est pour poster des info qui peuvent changer a tout moment et qui defilent sur l'ecran de toutes les autres VM.
Re: mon premier site avec html et css
vous devez concevoir un logiciel spécial pour cettePage 1 sur 1