boutons en CSS pas alignés
Bonjour,
j'essais désespérément d'aligner mes boutons.
ils s'affichent bien les uns aprés les autres, mais les uns en dessous des autres 8O
simple.html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="simple.css" />
</head>
<body>
<div id="menu">
<span class="menu1"><a href="about.htm">.</a></span>
<span class="menu2"><a href="portfolio.htm">.</a></span>
<span class="menu3"><a href="contact.htm">.</a></span>
</div>
</body>
</html> |
simple.css
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
body
{
bgcolor: #926dac;
topmargin: 0;
width: 1024px;
margin: auto;
}
a img
{
border: none;
}
#menu
{
float: left;
Width: 777px;
Height: 44px;
background-image: url("images/buttons_desk.jpg");
background-repeat: no-repeat;
}
.menu1
{
width: 87px;
height: 43px;
margin-left: 514px;
background-image: url("images/abm_hover.gif");
background-repeat: no-repeat;
display: block;
}
.menu1 a
{
width: 87px;
height: 43px;
background-image: url("images/abm_stand.gif");
background-repeat: no-repeat;
display: block;
}
.menu1 a:hover
{
width: 87px;
height: 43px;
margin-left: 514px;
background: none;
display: block;
}
.menu2
{
width: 87px;
height: 43px;
margin-left: 601px;
background-image: url("images/pfol_hover.gif");
background-repeat: no-repeat;
display: block;
}
.menu2 a
{
width: 87px;
height: 43px;
background-image: url("images/pfol_stand.gif");
background-repeat: no-repeat;
display: block;
}
.menu2 a:hover
{
width: 87px;
height: 43px;
background: none;
display: block;
}
.menu3
{
width: 87px;
height: 43px;
margin-left: 688px;
background-image: url("images/contact_hover.gif");
background-repeat: no-repeat;
display: block;
}
.menu3 a
{
width: 87px;
height: 43px;
background-image: url("images/contact_stand.gif");
background-repeat: no-repeat;
display: block;
}
.menu3 a:hover
{
width: 87px;
height: 43px;
background: none;
display: block;
} |