|
|
|
|
Posté par
aconitnapel, le dimanche 25 février 2007 à 13:11:50<div id="corps"> <p> <br /> <img src="Accueil/imgedito.jpg" class="Loïc" alt="" /> <img src="Accueil/Edito.png" class="Edito" title="" alt="" /></p> <p><img src="Accueil/B.png" class="B" alt="" />ienvenue... ... </div>
code du fichier css concernant la balise "corps" :
#corps
{
width: 480px;
margin-top: 0;
padding: 0;
background-image: url("neige.png");
background-repeat: repeat;
border: 2px inset black;
text-align: justify;
font-family: Garamond, "Times New Roman", Times, serif;
position: relative;
top: 80px;
left: 14px;
}
#corps p
{
text-indent: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 0px;
}
Configuration: Windows XP Firefox
Bonjour,
Le code que tu nous proposes n'est pas suffisant. Le “corps” se place relativement à autre chose. Nous en avons besoin. Le code entier de la page et de la feuille de styles est nécessaire (tu peux en enlever les données qu'on ne doit pas voir, mais pas le code). On peut cependant te proposer ces pistes. Pour éviter “cet espace en haut” dans Ff, tu peux essayer : html , body {
margin : 0;
padding : 0;
}
+ Évite les caractères “exotiques” dans tes noms : class="Loïc"devrait être class="Loic" |
Fichier html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <title>blablabla</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="gnagna" > <link rel="stylesheet" media="screen" type="text/css" title="Exemple" href="Accueil/Accueil2.css" /> <link rel="stylesheet" type="text/css" href="Menu/Menu_ac.css" /> <script type="text/javascript"> <!-- } } //--> </script> <script type="text/javascript"> <!-- function decompte() { } //--> </script> </head> <body> <div id="en_tete" onmouseover="javascript:cache('smenu1');"> <a href="index.html"><img src="Menu/Banniere.png" title=""/></a> </div> <div id="Menu"> <div id="Menu1" onmouseover="javascript:montre('smenu1');"> <img src="Menu/new/Menu1.png" title=""/> </div> <div id="Menu2" onmouseover="javascript:montre('smenu2');"> <img src="Menu/new/Menu2.png" title=""/> </div> <div id="Menu3" onmouseover="javascript:cache('smenu1');"> <a href="fichier.html"><img src="Menu/new/Menu3.png" title=""/></a> </div> <div id="Menu4" onmouseover="javascript:cache('smenu1');" > <a href="fichier.html"><img src="Menu/new/Menu4.png" title=""/></a> </div> <div id="Menu5" onmouseover="javascript:cache('smenu1');" > <a href="fichier.html"><img src="Menu/new/Menu5.png" title=""/></a> </div> <div id="Menu6" onmouseover="javascript:cache('smenu1');" > <a href="archives.html"><img src="Menu/new/Menu6.png" title=""/></a> </div> <div id="Sous-Menu"> <div id="smenu1"> <div id="Sous-Menu1" title=""> <a href="fichier.html"><img src="Menu/new/Sous-Menu1.png" title=""/></a> </div> <div id="Sous-Menu2" title=""> <a href="fichier.html"><img src="Menu/new/Sous-Menu2.png" title=""/></a> </div> </div> <div id="smenu2"> <div id="Sous-Menu3" title=""> <a href="fichier.html"><img src="Menu/new/Sous-Menu3.png" title=""/></a> </div> <div id="Sous-Menu4" title=""> <a href="fichier.html"><img src="Menu/new/Sous-Menu4.png" title=""/></a> </div> </div> </div> </div> <div id="Rdv"> <h3>Dernières nouvelles :</h3> <center>blablablabla<br /> blablablabla</center> </div> <div id="New"> <center>blablablabla mercredi 28 février.<br \><br \> bblablalabla <br /></center> </div> <div id="liens"> <h3> Liens utiles :</h3> blablabla </div> <div id="newsletter"> <h3>Contacts :</h3> <center><a href="contacts.php" target="_blank">Nous contacter.</a></center> </div> <div id="decompte"> <p><center>Sa approche !<br /> <script type="text/javascript">decompte();</script> </center></p> </div> <div id="fb"> <a href='http://www..fr' title='' /> <img width='160' height='300' border='0' alt='' src='http://www..fr/img/.jpg' /></a> </div> <div id="corps"> <p> <br /> <img src="Accueil/imgedito.jpg" class="Loïc" alt="" /> <img src="Accueil/Edito.png" class="Edito" title="" alt="" /></p> <p><img src="Accueil/B.png" class="B" alt="" />ienvenue sur le site.</p> <p> blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla </p> <p class="signature"><b>blablabla</b><br /> </p> </div> <div id="Pied_de_page"> <table border="1"> <tr> <td class="milieu"> <h5>site optimisé pour Internet Explorer.</h5> </td> </tr> </table> </div> </body> </html> |
Fichier CSS accueil2.css
body
{
width: 790px;
height: 560px;
margin-top: 0px;
margin-left: 10px;
padding-top: 0px;
background-image: url("fond.png");
background-repeat: repeat-y;
}
#en_tete
{
position: absolute;
top: 10px;
left: 10px;
}
#Rdv
{
margin-top: 3px;
line-height: 15px;
width: 247px;
height: 90px;
position: absolute;
top: 164px;
left: 517px;
border: 2px dotted blue;
padding: 3px;
background-color: #B5E1F5;
color: #EB717D;
}
#Rdv h3, #Rdv p
{
text-indent: 5px;
text-align: center;
font-family: Garamond, Tahoma, Serif;
}
#New
{
line-height: 15px;
width: 247px;
height: 120px;
position: absolute;
top: 275px;
left: 517px;
border: 2px dotted blue;
padding: 3px;
background-color: #B5E1F5;
color: #EB717D;
}
#New h3, #Rdv p
{
text-indent: 5px;
text-align: center;
font-family: Garamond, Tahoma, Serif;
}
#New h3
{
text-decoration: underline;
}
#Rdv h3
{
text-decoration: underline;
}
#menu
{
margin-top: 10px;
position: absolute;
top: 10px;
left: 10px;
}
ul, li
{
margin: 0px;
padding-left: 0px;
}
ul
{
width: 255px;
height: 340px;
background: transparent url("Fond_menu.png") top left no-repeat;
list-style-type: none;
padding-top: 70px;
font-size: 14px;
font-family: "Book Antiqua", Garamond, "Times New Roman", Times, serif;
}
li
{
display: inline;
}
li a
{
display: block;
width: 255px;
height: 21px;
color: #3339AD;
text-decoration: none;
text-align: center;
line-height: 21px;
}
strong
{
font-size: 12px;
font-weight: bold;
color: black;
}
li a:hover
{
color: #000000;
font-weight: bold;
background: transparent url("Fond_menu.png") top left no-repeat;
}
#corps
{
width: 480px;
margin-top: 10px;
padding: 0;
padding-top: none;
background-image: url("neige.png");
background-repeat: repeat;
border: 2px inset black;
text-align: justify;
font-family: Garamond, "Times New Roman", Times, serif;
position: relative;
top: 80px;
left: 14px;
}
#corps p
{
text-indent: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: none;
}
.arnaud
{
float: left;
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
}
.Edito
{
margin-top: 10px;
margin-left: 80px;
}
.signature
{
font-family: Tahoma, Arial, serif;
text-align: right;
padding-right: 10px;
padding-bottom: 10px;
}
#Pied_de_page
{
width: 756px;
height: 50px;
position: relative;
top: 90px;
background-image: url("Fond_pied_de_page.png");
border: 2px solid black;
text-align: center;
}
table
{
border: none;
}
.milieu
{
width: 760px;
height: 50px;
vertical-align: middle;
border: none;
}
#liens
{
margin-top: 3px;
line-height: 15px;
width: 247px;
height: 280px;
position: absolute;
top: 410px;
left: 517px;
border: 2px dotted blue;
padding: 3px;
background-color: #B5E1F5;
color: #EB717D;
}
#liens h3, #liens p
{
text-indent: 5px;
text-align: center;
font-family: Garamond, Tahoma, Serif;
}
#liens h3
{
text-decoration: underline;
}
#newsletter
{
margin-top: 3px;
line-height: 15px;
width: 247px;
height: 80px;
position: absolute;
top: 717px;
left: 517px;
border: 2px dotted blue;
padding: 3px;
background-color: #B5E1F5;
color: #EB717D;
}
#newsletter h3, #liens p
{
text-indent: 5px;
text-align: center;
font-family: Garamond, Tahoma, Serif;
}
#newsletter h3
{
text-decoration: underline;
}
#decompte
{
margin-top: 3px;
line-height: 15px;
width: 247px;
height: 80px;
position: absolute;
top: 815px;
left: 517px;
border: 2px dotted blue;
padding: 3px;
background-color: #B5E1F5;
color: #EB717D;
}
#decompte h3, #liens p
{
text-indent: 5px;
text-align: center;
font-family: Garamond, Tahoma, Serif;
}
#decompte h3
{
text-decoration: underline;
}
#fb
{
height: 305px;
width: 165px;
position: absolute;
top: 950px;
left: 557px;
padding: 3px;
}
|
Ah, c'est déjà mieux. Merci.
Est-ce qu'on peut avoir les tailles de toutes les images ? |
| 23/12 09h47 | Périphériques sous Linux | Matériel/Périphériques |
| 22/03 17h38 | Script pour lecture du flash sous IE7 | Webmaster |
| 14/09 08h44 | Téléphones compatibles Freebox | Free |
| 19/03 20h26 | Forcer IE7 à ouvrir toutes les pages dans un nouvel onglet | Internet Explorer |
| 05/03 21h29 | Tester son site sous plusieurs navigateurs | Webmaster |
| 03/09 16h32 | CSS pb compatibilité IE7 | 4 |
| 21/04 14h27 | HTML - Tableaux: Pb compatibilité IE7 et FF | 4 |
| 13/07 14h10 | Compatibilité IE7 avec Oulook express | 1 |
| 18/03 18h18 | Compatibilité d'un site entre firefox ie6 IE7 | 1 |
![]() | Pack de compatibilité Microsoft Office 2007 - En installant le pack de compatibilité pour Microsoft Office 2000, Office XP ou Office 2003, vous pouvez ouvrir, modifier et... | Catégorie: Bureautique Licence: Freeware/gratuit |
![]() | IE7 open last closed tab - Quoi de plus énervant lorsqu'on utilise un navigateur que de fermer accidentellement un onglet ! Mozilla Firefox et Opera... | Catégorie: Navigateurs Licence: Freeware/gratuit |
![]() | eChanblard - Ce logiciel est une modification de eMule. Il permet d'obtenir des taux de transfert plus importants qu'avec eMule et il est... | Catégorie: Internet Licence: Freeware/gratuit |
![]() | Beneton Movie GIF - Exigences minimales : Une carte graphique compatible DirectX 8 ou plus récente (avec un minimum de 32 MB de mémoire... | Catégorie: Animation Licence: Freeware/gratuit |
![]() | Cocktel Adibou - Lecture | Catégorie: Jeu vidéo PC | 12.99 € PriceMinister |
![]() | Samsung LE-40M86BD | Catégorie: Téléviseur LCD / Plasma | 784.00 € Pixmania |
![]() | Philips EXP2540 | Catégorie: Baladeurs CD | 32.14 € Webdistrib |
![]() | Sony Bravia KDL-46W4000 | Catégorie: Téléviseur LCD / Plasma | 1,546.00 € PriceMinister |