Calques / CSS me NUTS!

  • Zpoon
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Mar 20, 2004
  • Messages: 32
  • Loc: Norway
  • Status: Offline

Message Avril 7th, 2004, 3:18 pm

http://ariel.norlinux.com/~philodox/dogs/

Pourquoi ne pas élargir la DIV principal à la baisse car le contenu ne doit pas?

Mon code CSS:

Code: [ Select ]
body {
    margin: 0;
    padding: 0;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: x-small;
    width: 100%;
    height: 100%;
}

.main {
    background-image: url(images/styleset1/bg1.gif);
    background-position: top;
    background-repeat: repeat-x;
    position: absolute;
    background-color: #EEEEEE;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
}

.head {
    background-color: #F1F1F1;
    z-index: 1;
    position: absolute;
    width: 50%;
    height: 120px;
    left: 25%;
    right: 25%;
    top: 0px;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.content {
    background-color: #F1F1F1;
    z-index: 2;
    position: absolute;
    width: 50%;
    height: inherit;
    left: 25%;
    right: 25%;
    top: 120px;
    bottom: 16px;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.content2 {
    padding: 15px 0px 15px 0px;
}

.foot {
    background-color: #F1F1F1;
    z-index: 3;
    position: absolute;
    width: 50%;
    left: 25%;
    right: 25%;
    bottom: 0px;
    height: 16px;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.border_left {
    background-image: url(images/styleset1/border.png);
    background-repeat: repeat-y;
    height: 100%;
    width: 15px;
    position: absolute;
    left: 25%;
    top: 0px;
    bottom: 0px;
    z-index: 4;
}

.border_right {
    background-image: url(images/styleset1/border.png);
    background-repeat: repeat-y;
    height: 100%;
    width: 15px;
    position: absolute;
    right: 24%;
    top: 0px;
    bottom: 0px;
    z-index: 5;
}

.header {
    background-image: url(images/styleset1/head.jpg);
    background-repeat: no-repeat;
    background-position: center;
    width: 40%;
    position: absolute;
    left: 30%;
    right: 30;
    top: 0px;
    z-index: 6;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.linkbox1 {
    padding: 5px 7px 5px 7px;
    border-left: 1px dashed #777777;
    border-right: 1px dashed #777777;
    border-top: 1px dashed #777777;
    border-bottom: 1px dashed #777777;
    position: absolute;
    z-index: 7;
    left: 27%;
    top: 200px;
    width: 20%;
  height: 200px;
    overflow: auto;
}

.linkbox2 {
    padding: 5px 7px 5px 7px;
    border-left: 1px dashed #777777;
    border-right: 1px dashed #777777;
    border-top: 1px dashed #777777;
    border-bottom: 1px dashed #777777;
    position: absolute;
    z-index: 8;
    right: 27%;
    top: 200px;
    width: 20%;
}

.h1 {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-weight: 600;
}
  1. body {
  2.     margin: 0;
  3.     padding: 0;
  4.     color: #000000;
  5.     font-family: Verdana, Arial, Helvetica, sans-serif;
  6.     font-size: x-small;
  7.     width: 100%;
  8.     height: 100%;
  9. }
  10. .main {
  11.     background-image: url(images/styleset1/bg1.gif);
  12.     background-position: top;
  13.     background-repeat: repeat-x;
  14.     position: absolute;
  15.     background-color: #EEEEEE;
  16.     color: #000000;
  17.     font-family: Verdana, Arial, Helvetica, sans-serif;
  18.     width: 100%;
  19.     height: 100%;
  20. }
  21. .head {
  22.     background-color: #F1F1F1;
  23.     z-index: 1;
  24.     position: absolute;
  25.     width: 50%;
  26.     height: 120px;
  27.     left: 25%;
  28.     right: 25%;
  29.     top: 0px;
  30.     color: #000000;
  31.     font-family: Verdana, Arial, Helvetica, sans-serif;
  32. }
  33. .content {
  34.     background-color: #F1F1F1;
  35.     z-index: 2;
  36.     position: absolute;
  37.     width: 50%;
  38.     height: inherit;
  39.     left: 25%;
  40.     right: 25%;
  41.     top: 120px;
  42.     bottom: 16px;
  43.     color: #000000;
  44.     font-family: Verdana, Arial, Helvetica, sans-serif;
  45. }
  46. .content2 {
  47.     padding: 15px 0px 15px 0px;
  48. }
  49. .foot {
  50.     background-color: #F1F1F1;
  51.     z-index: 3;
  52.     position: absolute;
  53.     width: 50%;
  54.     left: 25%;
  55.     right: 25%;
  56.     bottom: 0px;
  57.     height: 16px;
  58.     color: #000000;
  59.     font-family: Verdana, Arial, Helvetica, sans-serif;
  60. }
  61. .border_left {
  62.     background-image: url(images/styleset1/border.png);
  63.     background-repeat: repeat-y;
  64.     height: 100%;
  65.     width: 15px;
  66.     position: absolute;
  67.     left: 25%;
  68.     top: 0px;
  69.     bottom: 0px;
  70.     z-index: 4;
  71. }
  72. .border_right {
  73.     background-image: url(images/styleset1/border.png);
  74.     background-repeat: repeat-y;
  75.     height: 100%;
  76.     width: 15px;
  77.     position: absolute;
  78.     right: 24%;
  79.     top: 0px;
  80.     bottom: 0px;
  81.     z-index: 5;
  82. }
  83. .header {
  84.     background-image: url(images/styleset1/head.jpg);
  85.     background-repeat: no-repeat;
  86.     background-position: center;
  87.     width: 40%;
  88.     position: absolute;
  89.     left: 30%;
  90.     right: 30;
  91.     top: 0px;
  92.     z-index: 6;
  93.     border-left: 1px solid #000000;
  94.     border-right: 1px solid #000000;
  95.     border-bottom: 1px solid #000000;
  96. }
  97. .linkbox1 {
  98.     padding: 5px 7px 5px 7px;
  99.     border-left: 1px dashed #777777;
  100.     border-right: 1px dashed #777777;
  101.     border-top: 1px dashed #777777;
  102.     border-bottom: 1px dashed #777777;
  103.     position: absolute;
  104.     z-index: 7;
  105.     left: 27%;
  106.     top: 200px;
  107.     width: 20%;
  108.   height: 200px;
  109.     overflow: auto;
  110. }
  111. .linkbox2 {
  112.     padding: 5px 7px 5px 7px;
  113.     border-left: 1px dashed #777777;
  114.     border-right: 1px dashed #777777;
  115.     border-top: 1px dashed #777777;
  116.     border-bottom: 1px dashed #777777;
  117.     position: absolute;
  118.     z-index: 8;
  119.     right: 27%;
  120.     top: 200px;
  121.     width: 20%;
  122. }
  123. .h1 {
  124.     font-family: Geneva, Arial, Helvetica, sans-serif;
  125.     font-weight: 600;
  126. }


N'importe qui avez des idées?
  • Anonymous
  • Bot
  • No Avatar
  • Inscription: 25 Feb 2008
  • Messages: ?
  • Loc: Ozzuland
  • Status: Online

Message Avril 7th, 2004, 3:18 pm

  • b_heyer
  • Web Master
  • Web Master
  • Avatar de l’utilisateur
  • Inscription: Juin 15, 2003
  • Messages: 4583
  • Loc: Maryland
  • Status: Offline

Message Avril 7th, 2004, 3:35 pm

Lequel est votre div principal? Vous pouvez essayer de
Code: [ Select ]
height : auto;
Pixel Acres V2
  • Zpoon
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Mar 20, 2004
  • Messages: 32
  • Loc: Norway
  • Status: Offline

Message Avril 7th, 2004, 3:38 pm

essayé, n'ont pas aidé...

Code: [ Select ]
.content {
  background-color: #F1F1F1;
  z-index: 2;
  position: absolute;
  width: 50%;
  height: inherit;
  left: 25%;
  right: 25%;
  top: 120px;
  bottom: 16px;
  color: #000000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
  1. .content {
  2.   background-color: #F1F1F1;
  3.   z-index: 2;
  4.   position: absolute;
  5.   width: 50%;
  6.   height: inherit;
  7.   left: 25%;
  8.   right: 25%;
  9.   top: 120px;
  10.   bottom: 16px;
  11.   color: #000000;
  12.   font-family: Verdana, Arial, Helvetica, sans-serif;
  13. }


Ceci est celui dont j'ai besoin pour développer je pense...
Ive a essayé height: 100%, height: auto et de la hauteur: inherit
Aucun d'entre eux travaillaient
  • b_heyer
  • Web Master
  • Web Master
  • Avatar de l’utilisateur
  • Inscription: Juin 15, 2003
  • Messages: 4583
  • Loc: Maryland
  • Status: Offline

Message Avril 7th, 2004, 3:45 pm

bien en ce moment le "contenu" seulement div imbriqués dans ce texte, rien d'autre.
Pixel Acres V2
  • digitalMedia
  • a.k.a. dM
  • Genius
  • Avatar de l’utilisateur
  • Inscription: Déc 29, 2003
  • Messages: 5169
  • Loc: SC-USA
  • Status: Offline

Message Avril 8th, 2004, 12:28 pm

Je n'ai pas enquêter de manière approfondie, mais lorsque vous utilisez le positionnement en CSS, il prend l'objet de l'écoulement normal de rendre. Ainsi, alors que le contenu mai être imbriquées ne sont pas inclus dans les dimensions du contenant DIV.
- dM

Afficher de l'information

  • Total des messages de ce sujet: 5 messages
  • Utilisateurs parcourant ce forum: ScottG et 144 invités
  • Vous ne pouvez pas poster de nouveaux sujets
  • Vous ne pouvez pas répondre aux sujets
  • Vous ne pouvez pas éditer vos messages
  • Vous ne pouvez pas supprimer vos messages
  • Vous ne pouvez pas joindre des fichiers
 
 

© 2011 Unmelted, LLC. Ozzu® est une marque déposée de Unmelted, LLC