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

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  min-height

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

min-height

n°732737
Flyman30
Posté le 20-05-2004 à 14:25:08  profilanswer
 

Y a t'il une alternative pour min-height ? en effet ça fonctionne bien ave c Mozilla/Firefox et Opéra7 mais pas avec IE6  :sweat:  
 
       

Code :
  1. html, body
  2. {
  3. margin:0;
  4. padding:0;
  5. background-color: #FFFFFF;
  6. font-family: Verdana, Helvetica, sans-serif;
  7. font-size:1Ox;
  8. line-height:normal;
  9. color:#000000;
  10. height: 100%;
  11. }
  12. p, h2, h3, a, .retour, .TextGras, .TextMini, .Textitalic, .Textitalic3, .texte-centre, .table, .TableB, .tblbor, .table2, li, ul, select
  13. {
  14. font-family: Verdana, Helvetica, sans-serif;
  15. font-size:10px;
  16. color:#000000;
  17. background-color: #FFFFFF;
  18. }
  19. p
  20. {
  21. text-align: justify;
  22. }
  23. ul, li
  24. {
  25. text-align: left;
  26. }
  27. .banniere
  28. {
  29. background-color: #008040;
  30. height: 90px;
  31. }
  32. .contenu
  33. {
  34. min-height: 80%;
  35. background-color: #ffffff;
  36. }
  37. .gauche
  38. {
  39. background-color: #ffffff;
  40. float: left;
  41. width: 150px;
  42. color: #ffffff;
  43. margin-left: 10px
  44. }
  45. .principal
  46. {
  47. margin-left: 190px;
  48. padding-right: 20px;
  49. padding-top: 10px;
  50. padding-bottom: 10px;
  51. }
  52. .pied
  53. {
  54. background-color: #008040;
  55. height: 5%;
  56. padding-top: 20px;
  57. text-align: center;
  58. }


 
HTML  
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
  3. <html>
  4. <head>
  5.  <title></title>
  6.  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7.  <link rel="stylesheet" type="text/css" href="sempe.css" media="screen"></link>
  8. </head>
  9. <body>
  10.  <!--#include file = "Haut.inc"-->
  11.  <div class="contenu">
  12.   <div class="gauche">
  13.    <!--#include file="menu2.inc"--></div>
  14.   <div class="principal">
  15.   </div>
  16.  </div>
  17.  <div class="pied">
  18.  </div>
  19. </body>
  20. </html>


 
 
Bien entendu dans IE le min-height n'est pas respecté  :o


Message édité par Flyman30 le 20-05-2004 à 14:27:35
mood
Publicité
Posté le 20-05-2004 à 14:25:08  profilanswer
 

n°734523
Flyman30
Posté le 22-05-2004 à 09:42:06  profilanswer
 

J'ai fait comme ça finalement :
 

Code :
  1. html, body
  2. {
  3. margin:0;
  4. padding:0;
  5. background-color: #FFFFFF;
  6. font-family: Verdana, Helvetica, sans-serif;
  7. font-size:1Ox;
  8. line-height:normal;
  9. color:#000000;
  10. height: 100%;
  11. }
  12. p, h2, h3, a, .retour, .TextGras, .TextMini, .Textitalic, .Textitalic3, .texte-centre, .table, .TableB, .tblbor, .table2, li, ul, select
  13. {
  14. font-family: Verdana, Helvetica, sans-serif;
  15. font-size:10px;
  16. color:#000000;
  17. background-color: #FFFFFF;
  18. }
  19. p
  20. {
  21. text-align: justify;
  22. }
  23. ul, li
  24. {
  25. text-align: left;
  26. }
  27. .banniere
  28. {
  29. background-color: #008040;
  30. height: 90px;
  31. }
  32. .contenu
  33. {
  34. min-height: 80%;
  35. width: 100%;
  36. }
  37. .accueil
  38. {
  39. margin: 20px;
  40. }
  41. .gauche
  42. {
  43. float: left;
  44. width: 150px;
  45. color: #ffffff;
  46. margin-left: 10px
  47. }
  48. .principal
  49. {
  50. margin-left: 190px;
  51. padding-right: 20px;
  52. padding-top: 10px;
  53. padding-bottom: 10px;
  54. min-height: 600px;
  55. }
  56. .pied
  57. {
  58. height: 5%;
  59. padding-top: 20px;
  60. text-align: center;
  61. }


 
S'il y a une autre solution je suis preneur  ;)
 
http://flyman30.dyndns.org/test/template.asp


Message édité par Flyman30 le 22-05-2004 à 09:50:30

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

  min-height

 

Sujets relatifs
height: 100% marche pas dans firefox[CSS] Height 100% dans IE
[CSS] height d'un div reglé par expressionregex(bbcode) de la balise img avec les attributs width,height,border
[CSS] Div avec height à 100%[XHTML strict] width / height / align / color ?
[JAVA] Récupérer width & height d'une image [Solution inside]Problème avec HEIGHT :(
[W3C] Probleme avec HEIGHT[HTML] line-height et Netscape... ;-(
Plus de sujets relatifs à : min-height


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