Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1007 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  résolution d'un site

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

résolution d'un site

n°2135520
rmathieu13
Posté le 10-04-2012 à 12:03:16  profilanswer
 

Bonjour j'ai besoin d'aide je suis en stage et on m'a donné un problème à résoudre sur le site d'une cliente faire en sorte que le site web s'adapte à n'importe quelle résolution800x600, 1024x768, et résolution supérieur.. voilà le site http://pro-g-deco.fr/ j'ai quand même chercher sur internet mais j'ai pas vraiment trouvé même en ajoutant cette ligne de code ça marche pas. Je débute dans le domaine du html et vu que ce n'est pas moi qui est fait le site je suis perdu..

Code :
  1. #body {
  2. position: relative;
  3. width: 100%;
  4. }


 
CSS
 

Code :
  1. html, body, h1, h2, h3, h4 {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. h1 img {
  6. display: block;
  7. }
  8. img {
  9. border: 0;
  10. }
  11. a {
  12. color: #333;
  13. font-weight: bold;
  14. text-decoration: none;
  15. }
  16. a:hover {
  17. color: #FFA405;
  18. text-decoration: underline;
  19. }
  20. .left {
  21. float: left;
  22. }
  23. .right {
  24. float: right;
  25. }
  26. .more {
  27. text-align: right;
  28. }
  29. .clear {
  30. clear: both;
  31. }
  32. body {
  33.   background: #000;
  34. text-align: center;
  35. font: 11px arial, sans-serif;
  36. color: #312F1A;
  37. }
  38. /** layout **/
  39. #wrapper {
  40. text-align: left;
  41. margin: 20px auto;
  42. width: 714px;
  43.   position: relative;
  44. }
  45. #header {
  46.   background: top center url(images/logo.jpg) no-repeat;
  47.   padding-top: 91px;
  48.   width: 292px;
  49.   position: relative;
  50. }
  51. /** Header **/
  52. h1 {
  53.   color: #FDE7C2;
  54.   background: #991111;
  55.   border: 2px solid #C4B888;
  56.   padding: 8px;
  57.   text-align: center;
  58.   font: 25px "Times new roman", sans-serif;
  59.   font-style: italic;
  60.   font-weight: normal;
  61.   margin: 0 0 2px 21px;
  62. }
  63. #search {
  64.   width: 148px;
  65.   background: #E8E7DA url(images/search_top.jpg) no-repeat;
  66.   text-align: center;
  67.   position: absolute;
  68.   bottom: -1px;
  69.   left: 558px;
  70.   padding: 6px 0;
  71. }
  72. #search .text {
  73.   width: 63px;
  74. }
  75. /** Body **/
  76. #body {
  77.   position: relative;
  78.   width: 100%;
  79. }
  80. #nav {
  81. position: absolute;
  82. top: 1px;
  83. left: -4px;
  84. width: 252px;
  85. padding-top: 292px;
  86. background: url(images/pic_1.jpg) no-repeat;
  87. }
  88. #nav ul {
  89.   background: bottom right #991111 url(images/nav_bot.jpg) no-repeat;
  90.   margin: 0 7px 0 28px;
  91.   padding: 5px 20px 15px 20px;
  92. }
  93. #nav li {
  94.   list-style: none;
  95.   background: bottom left url(images/dots.jpg) repeat-x;
  96. }
  97. #nav a {
  98.   color: #FDE7C2;
  99.   font: 18px "times new roman", serif;
  100.   font-style: italic;
  101.   background: #991111;
  102.   padding-right: 8px;
  103. }
  104. /** content **/
  105. #content {
  106.   background: #E8E7DA bottom right url(images/body_bottom_right.jpg) no-repeat;
  107.   width: 700px;
  108.   margin-left: 254px;
  109.   min-height: 600px;
  110. }
  111. #content .main, #content .main2 {
  112.   float: right;
  113.   width: 650px;
  114.   margin-top: 18px;
  115.   padding-right: 28px;
  116. }
  117. #content .main {
  118.   padding-bottom: 1em;
  119.   border-bottom: 1px solid #D6D3BA;
  120. }
  121. #content .main p, #content .main2 p {
  122.   margin: 0em 1em 0 0;
  123. }
  124. #content .main2 .right {
  125.   margin-left: 18px;
  126. }
  127. #content .main .clear, #content .main2 .clear {
  128.   height: 20px;
  129.   margin-bottom: -10px;
  130. }
  131. h2 {
  132.   font: italic 22px "Times new roman", serif;
  133.   color: #991111;
  134.   margin: 0 0 0.5em 0;
  135. }
  136. h3 {
  137.   font: italic 15px "Times new roman", serif;
  138.   color: #991111;
  139.   margin: 0.3em 0 0.3em 0;
  140. }
  141. /** Footer **/
  142. #footer {
  143.   color: #E8E7DA;
  144.   margin: 2px 0 0 275px;
  145. }
  146. #privacy {
  147.   position: absolute;
  148.   right: 8px;
  149.   width: 148px;
  150.   padding: 4px 0;
  151.   text-align: center;
  152.   background: #E8E7DA bottom left url(images/footer_tab.jpg) no-repeat;
  153. }
  154. #privacy a {
  155.   color: #000;
  156.   font-weight: normal;
  157. }
  158. table
  159. {
  160. border-collapse: collapse;
  161. margin: 0 auto;
  162. border-style: ridge;
  163. }
  164. td
  165. {
  166. text-align : center;
  167. vertical-align: middle;
  168. border-style: ridge;
  169. }

mood
Publicité
Posté le 10-04-2012 à 12:03:16  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  résolution d'un site

 

Sujets relatifs
Avoir une résolution universelle pour mon site web?[dreamwaver] Optimiser son site pour la résolution d'écran
resolution automatique site webRésolution site internet ??
Bug graphique, avec les images selon la résolution, firefox et ieComment faire une résolution identique sur un site web ?
garder l'affichage du site suivant la résolution[dreamweaver MX] adapter le site à la résolution d'écran
afficher un site de même taille pour n'importe quelle résolution 
Plus de sujets relatifs à : résolution d'un site


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR