J'ai une liste d'images que je suis en train de bouger, mais il ne fonctionne pas.Pourquoi ma marge supérieure ne fonctionne pas?
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
</head>
<body>
<div id="wrapper">
<h1>Portfolio</h1>
<img src="assets/img/PHOTOGRAOHY.png" alt="Photography" width="214" height="183">
<img id="industrialDesignIMG" src="assets/img/ID.png" alt="Industrial Design" width="232" height="183">
<img src="assets/img/GraphicDesign.png" alt="Graphic Design" width="233" height="196">
<img src="assets/img/animation.png" alt="Animation" width="198" height="142">
</div>
</body>
</html>
CSS:
#industrialDesignIMG {
border:1px #fff solid;
display: inline-block;
margin-top: 80px;
}
#wrapper {
width:960px;
margin:0 auto;
}
Je veux #industrialDesignIMG
avoir un margin-top
de 80px
, mais rien ne bouge ou non tous les éléments img
déplacer. Que puis-je faire pour que mon margin-top
fonctionne?