Metre image a droite
Lea
-
Lea -
Lea -
Bonjour, j'ai besoin de vous aujourd'hui je n'arrive pas à mettre une image à droite d'une autre voici le code que j'ai fais :
code css:
#ban
{
width: 800px;
height: 150px;
background-image: url("images/lol.png");
background-repeat: no-repeat;
margin-bottom: 10px;
}
#ban2
{
width: 800px;
height: 150px;
background-image: url("images/94.png");
background-repeat: no-repeat;
margin-bottom: 10px;
left-top: 395px;
}
code css:
#ban
{
width: 800px;
height: 150px;
background-image: url("images/lol.png");
background-repeat: no-repeat;
margin-bottom: 10px;
}
#ban2
{
width: 800px;
height: 150px;
background-image: url("images/94.png");
background-repeat: no-repeat;
margin-bottom: 10px;
left-top: 395px;
}
1 réponse
-
rajoutes float:left; sur la div de gauche , et float:right; sur celle de droite , ou alors float:left; sur les 2 si tu veux qu'elles soient cote à cote .
-
-
-
oui, le voila :
<!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>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="style" href="Yanis.css" />
</head>
<body>
<div id="ban">
</div>
<div id="ban2">
<div id="corps">
cc
</div>
<div id="pied_de_page">
</div>
</body>
</html> -
-