Problème postion lien(ailgn)
jaden4122
-
jaden4122 -
jaden4122 -
Bonjour,
Je suis intermediaire au création web pouvez vous m'aidez
Mon Problème :
J'ecris ce si aprrès head bla ! bla ! bla !
<div id="content"><div align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></div>
J'essais de
mettre le jeu
au centre avec se qui est souligné m'est ca marche pas.
Vous pouvez aidez .
Merci d'avance
Je suis intermediaire au création web pouvez vous m'aidez
Mon Problème :
J'ecris ce si aprrès head bla ! bla ! bla !
<div id="content"><div align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></div>
J'essais de
mettre le jeu
au centre avec se qui est souligné m'est ca marche pas.
Vous pouvez aidez .
Merci d'avance
A voir également:
- Problème postion lien(ailgn)
- Lien url - Guide
- Créer un lien pour partager des photos - Guide
- Verificateur de lien - Guide
- Ma postion - Guide
- Lien copié - Forum Mobile
2 réponses
C'est normal, puisque tu as mis ici, c'est la position du 2ème div, et un div prend toute la largeur qu'il peut !
Voila ce que je te propose, un bon petit CSS :
Voila ce que je te propose, un bon petit CSS :
<div id="content" style="text-align:center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></div>
jaden4122
Je vais essaiyer merci
jaden4122
Sa ne marche pas sa fais n'importe quoi.
Ah ?? Bon, deux autres possibilités :
-<div id="content"><span align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></span></div>
- <div id="content" style='padding-left:50%'><object width="580" height="380" style='margin-right:-50%'><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></div>
J'ose préciser qu'à parement dans ton 1er message, le 1er div n'est pas fermé. C'est peut être tout bêtement ça non ?
-<div id="content"><span align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></span></div>
- <div id="content" style='padding-left:50%'><object width="580" height="380" style='margin-right:-50%'><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></div>
J'ose préciser qu'à parement dans ton 1er message, le 1er div n'est pas fermé. C'est peut être tout bêtement ça non ?
Sa ne marche pas mais je peux plus montrer
Je montre mon code source :
<title>Mon site</title>
<link rel="stylesheet" type= "text/css" href="style_aventure.css"/>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><!--
if (document.images) {
name1on = new Image();name1on.src = 'images/aventure_2.jpg'; name1off = new Image();name1off.src = 'images/aventure.jpg';
}
function swapOn(name) {
if (document.images)
document.images[name].src = eval(name + 'on.src');
}
function swapOff(name) {
if (document.images)
document.images[name].src = eval(name + 'off.src');
}
//--></SCRIPT>
<body>
<div id="pos">
<div id="logo">
<a href= "Menu_Mouhammad.html">Retour vers Le Menu</a>
</div>
<div id="tab">
<div id="menu">
<a href= "Aventure.html" id="menu1" onMouseOver="swapOn('name1')" onMouseOut="swapOff
('name1')"><img name="name1" src="images/aventure.jpg" border="" alt=""></a><br />
</div>
<div id="content"><span align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></span></div>
<div id="copyright"></div>
</div>
</body>
Et voici le style_aventure.css :
body {
margin: 10px;
}
#logo {
float: left;
width: 800px;
height: 120px;
background-image: url(images/logo_jeux.jpg) ;
margin-bottom: 10px;
}
#menu {
float: left;
width: 92px;
height: 100px;
}
#menu1 {
width: 92px;
height: 20px;
}
#menu2 {
width: 92px;
height: 20px;
}
#content {
margin-left: 8px;
float: left;
width: 700px;
height: 600px;
background-image: url(images/content_aventures.jpg);
}
#tab {
clear: left;
width: 900px;
height: 600px
}
#copyright {
clear: left;
width: 800px;
height: 80px;
background-image: url(images/pied_3.jpg) ;
margin-top: 10px;
}
#copyright {
clear: left;
width: 800px;
height: 80px;
background-image: url(images/pied_3.jpg) ;
margin-top: 10px;
}
#pos {
width: 800px;
margin-left: auto;
margin-right: auto;
}
Je montre mon code source :
<title>Mon site</title>
<link rel="stylesheet" type= "text/css" href="style_aventure.css"/>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><!--
if (document.images) {
name1on = new Image();name1on.src = 'images/aventure_2.jpg'; name1off = new Image();name1off.src = 'images/aventure.jpg';
}
function swapOn(name) {
if (document.images)
document.images[name].src = eval(name + 'on.src');
}
function swapOff(name) {
if (document.images)
document.images[name].src = eval(name + 'off.src');
}
//--></SCRIPT>
<body>
<div id="pos">
<div id="logo">
<a href= "Menu_Mouhammad.html">Retour vers Le Menu</a>
</div>
<div id="tab">
<div id="menu">
<a href= "Aventure.html" id="menu1" onMouseOver="swapOn('name1')" onMouseOut="swapOff
('name1')"><img name="name1" src="images/aventure.jpg" border="" alt=""></a><br />
</div>
<div id="content"><span align="center"><object width="580" height="380"><param name="movie" value="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf"></param><embed src="http://www8.agame.com/games/flash/d/drago_adventure/drago_adventure.swf" type="application/x-shockwave-flash" width="580" height="380" border="100"><align ="center"></embed></object></span></div>
<div id="copyright"></div>
</div>
</body>
Et voici le style_aventure.css :
body {
margin: 10px;
}
#logo {
float: left;
width: 800px;
height: 120px;
background-image: url(images/logo_jeux.jpg) ;
margin-bottom: 10px;
}
#menu {
float: left;
width: 92px;
height: 100px;
}
#menu1 {
width: 92px;
height: 20px;
}
#menu2 {
width: 92px;
height: 20px;
}
#content {
margin-left: 8px;
float: left;
width: 700px;
height: 600px;
background-image: url(images/content_aventures.jpg);
}
#tab {
clear: left;
width: 900px;
height: 600px
}
#copyright {
clear: left;
width: 800px;
height: 80px;
background-image: url(images/pied_3.jpg) ;
margin-top: 10px;
}
#copyright {
clear: left;
width: 800px;
height: 80px;
background-image: url(images/pied_3.jpg) ;
margin-top: 10px;
}
#pos {
width: 800px;
margin-left: auto;
margin-right: auto;
}