Adapter à la taille de l'écran
Bonjour a tous,
Je souhaiterai savoir si il était possible de d'adapter tout un document html a la taille d'un écran. C'est a dire que j'ai fait un design sous photoshop je l'ai découper mais il n'est pas a la taille de mon écran.
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
| <html>
<head>
<title>Portail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (Portail.psd) -->
<table id="Tableau_01" width="1275" height="801" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9">
<img src="images/Portail_01.jpg" width="1275" height="301" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
<img src="images/Portail_02.jpg" width="138" height="83" alt=""></td>
<td>
<img src="images/Portail_03.jpg" width="228" height="60" alt=""></td>
<td colspan="3" rowspan="2">
<img src="images/Portail_04.jpg" width="530" height="83" alt=""></td>
<td rowspan="2">
<img src="images/Portail_05.jpg" width="202" height="83" alt=""></td>
<td colspan="2" rowspan="2">
<img src="images/Portail_06.jpg" width="177" height="83" alt=""></td>
</tr>
<tr>
<td>
<img src="images/Portail_07.jpg" width="228" height="23" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/Portail_08.jpg" width="125" height="416" alt=""></td>
<td colspan="3">
<img src="images/Portail_09.jpg" width="254" height="297" alt=""></td>
<td rowspan="2">
<img src="images/Portail_10.jpg" width="491" height="416" alt=""></td>
<td colspan="3">
<img src="images/Portail_11.jpg" width="254" height="297" alt=""></td>
<td rowspan="2">
<img src="images/Portail_12.jpg" width="151" height="416" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/Portail_13.jpg" width="254" height="119" alt=""></td>
<td colspan="3">
<img src="images/Portail_14.jpg" width="254" height="119" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="125" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="228" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="491" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="26" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="202" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="26" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="151" height="1" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html> |
Merci de votre aide,
Simonfr
Ajuster à la taille de l'écran
Le code en html est obsolète en ce qui concerne la mise en page et il faudrait utiliser dess divisions plutôt que des tables avec des cellules qui sont réservées aux présentation structurées.
Il faudrait passer au CSS pour la présentation, et il serait possible de tout afficher sur un écran notamment avec les pourcentages.