Problème alignement

Problème alignement - HTML/CSS - Programmation

Marsh Posté le 17-02-2019 à 14:54:21    

Bonjour, je débute en HTML et j'ai voulu faire un premier exercice mais je me heurte à un problème. Mon premier paragraphe et l'image qui va avec sont décalés vers la gauche.
Je ne vois pas la raison. Pouvez vous m'aider ?
Merci !
 
<html>
<head>
<meta charset="utf-8">
<title>Sauvegarder ses fichiers</title>
<style>
 body{
  background-color: #FF8000;
 }
 h1{
  color:blue;
  font-size:20px;
  text-align: center;
 }
 h2{
  color:blue;
  font-size:14px;
  text-align: left;
 }
 td{
  border: 1px solid black;
 }
 table{
  border-collapse: collapse;
 }
 td{
  text-align:center;
 }
</style>  
</head>
<body>
<h1>SAUVEGARDER SES FICHIERS</h1>
<br>
<h2>SAUVEGARDE SUR LE CLOUD</h2>
<br>
<img src=HTML/images/cloud.jpg>
<br>
<ul>
 <li>Google Drive</li>
 <li>OneDrive</li>
 <li>DropBox</li>
<br>
<h2>SYNCHRONISATION AVEC D&apos;AUTRES MACHINES</h2>
<br>
<p>Quand on poss&egrave;de plusieurs ordinateurs, il est possible d&apos;utiliser des logiciels de synchronisation qui permettent aussi la sauvegarde.</p>
<br>
<ol>
 <li>Syncback</li>
 <li>Groobax</li>
</ol>
<br>
<h2>SAUVEGARDE SUR SUPPORTS AMOVIBLES</h2
<br>
<table>
 <tr>
  <td>Cl&eacute; USB</td>
  <td>DVD</td>
  <td>CARTE M&Eacute;MOIRE</td>
  <td>DD EXTERNE</td>
 </tr>
 <tr>
  <td><img src=HTML/images/cle_usb.jpg></td>
  <td><img src=HTML/images/dvd.jpg></td>
  <td><img src=HTML/images/cartememoire.jpg></td>
  <td><img src=HTML/images/ddexterne.jpg></td>
 </tr>
 
</table>
 
</body>
</html>
 

Reply

Marsh Posté le 17-02-2019 à 14:54:21   

Reply

Marsh Posté le 18-02-2019 à 16:16:04    

Ton ul n'est pas fermés donc tu as le padding "par défaut" de l'ul pour tous les blocs suivants


---------------
D3
Reply

Marsh Posté le 19-02-2019 à 01:02:39    

Bonjour j'avais bien relu et trouvé mon oubli. Merci de ton aide

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed