IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Calcule dans les dimensions


Sujet :

Dimensionnement en CSS

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut Calcule dans les dimensions
    Bonjour, j'aurai une question asser simple, est ce possible de faire des calcules dans les dimensions d'une div comme par exemple:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    div.centre {width:(100%)-200px; height:100%;}

  2. #2
    Membre émérite Avatar de HiRoN
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 035
    Points : 2 589
    Points
    2 589
    Par défaut
    Pour ma part jamais vu ça dans un css... Dormirai moins con si c'est possible...
    Pensez à utiliser les ressources disponibles en Dev. Web :
    (x)HTML : Cours (X)HTML / FAQ (X)HTML
    CSS : Cours CSS / FAQ CSS / Galerie CSS
    Javascript : Cours / FAQ / Sources
    Mon site : Développeur Web Freelance

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    En fait je m'explique j'ai 3 colonnes sur une page:
    une completement à gauche qui a comme css:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    #col_left {float:left; width:200px; height:100%; background-color:#73afe6;}
    une completement à droite qui a comme css:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    #col_right {float:right; width:200px; height:100%; background-color:#73afe6;}
    et une centrale qui devrait prendre toute la largeur restante entre les 2 autres colonnes, j'ai donc mis comme css:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    #center {float:left; border:1px solid red; height:100%; width:100%;}
    Mais, avec cette solution il prend toute la largeur après la colonne de gauche et du coup celle droite se retrouve sous celle de gauche.

    J'ai donc penser faire en sorte qu'il prenne toute la largeur donc 100% moins la largeur de la colonne de droite (200px).

    Mais cette solution est elle envisageable???

  4. #4
    Membre éclairé Avatar de c_s_s
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    619
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juillet 2008
    Messages : 619
    Points : 747
    Points
    747
    Par défaut
    Bonjour,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    div.centre {width:(100%)-200px; height:100%;}
    Ca, je pense que ce n'est pas possible.


    Pour la disposition de tes blocs, tu peux faire quelque chose comme ça :

    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    #col_left {float:left; width:200px; height:100%; background-color:#73afe6;}
    #col_right {float:right; width:200px; height:100%; background-color:#73afe6;}
    #center {border:1px solid red; height:100%; }

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <div id="col_left">...</div>
    <div id="col_right">...</div>
    <div id="center">...</div>

    De cette façon, le bloc central occupe automatiquement l'espace restant entre les colonnes de gauche et de droite.

  5. #5
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    Merci pour ta réponse C_S_S.

    Ta solution marche bien sauf si l'on rajoute :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    #center {border:1px solid red; height:100%; text-align:center;}
    A ce moment la, mon centre se place sous les 2 colonne et non-plus haut milieu.

    Une astuce?

  6. #6
    Membre actif Avatar de Damouille
    Inscrit en
    Avril 2006
    Messages
    268
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 268
    Points : 289
    Points
    289
    Par défaut
    Le text-align: center, centre les éléments qui sont à l'intérieur de la div. Il n'a normalement aucune influence sur la div elle meme.
    Ce comportement est étrange
    IConsulting - web consultants Cambodia

  7. #7
    Membre éclairé Avatar de pop_up
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    877
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Avril 2006
    Messages : 877
    Points : 786
    Points
    786
    Par défaut
    Citation Envoyé par nico341 Voir le message
    A ce moment la, mon centre se place sous les 2 colonne et non-plus haut milieu.
    Sous quel navigateur as tu testé ?

    J'ai testé ceci sous IE6 et Firefox 2 et c'est ok :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
        <title>untitled</title>
    	<style TYPE="text/css">
    	#col_left {float:left; width:200px; height:100%; background-color:#73afe6;}
    	#col_right {float:right; width:200px; height:100%; background-color:#73afe6;}
    	#center {border:1px solid red; height:100%;text-align:center;}
    	</style>
    </head>
    <body>
    <div id="col_left">.s d sd fsdf f..</div>
    <div id="col_right">.sdf sdfs ds fsd fsd fsd ..</div>
    <div id="center">..sdf sdfsdf.</div>
     
    </body>
    </HTML>
    Si tu veux, tu peux ajouter un overflow: auto; sur le #center.


  8. #8
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    Ok j'ai vu d'ou venait mon problème, j'avais oublié un dans #center.

    Avec l'overflow ca marche nikel le contenu reste bien centré, par contre, quel est la commande pour virer la scroll bar vertical??

  9. #9
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Bonjour

    Citation Envoyé par nico341 Voir le message
    Avec l'overflow ca marche nikel le contenu reste bien centré, par contre, quel est la commande pour virer la scroll bar vertical??
    Vous souhaitez participer à la rubrique (X)HTML/CSS, contactez moi.
    débutez avec les CSS
    Pas de MP pour des questions techniques ! Mode d'emploi du forum ; Règles ; Pensez à la balise code ; Pas de SMS !
    Votez pour les messages qui vous ont aidés...

  10. #10
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    D'après se que je comprend ca n'existe pas en w3c de virer une des 2 scroll.

    Mais je pense savoir d'ou vient mon problème.
    Pour rendre visible la colonne de droite qui n'a pas de contenu, juste un fond de couleur, j'ai fais:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    html, body {width:100%;  margin:0px; padding:0px;}
    hors ici le 100% correspond à la taille de l'ecran et si le centre est plus long que l'ecran il le gere comme un overflow et donc il rajoute une scroll.

    Je pense la seul solution est de mettre une hauteur au 2 colonne ou au body je me trompe?

  11. #11
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Citation Envoyé par nico341 Voir le message
    D'après se que je comprend ca n'existe pas en w3c de virer une des 2 scroll.
    Si, utilises :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    overflow-x:hidden;
    overflow-y:scroll;
    Si ça ne résoud pas ton souci, postes nous ton code, voire une page en ligne...
    Vous souhaitez participer à la rubrique (X)HTML/CSS, contactez moi.
    débutez avec les CSS
    Pas de MP pour des questions techniques ! Mode d'emploi du forum ; Règles ; Pensez à la balise code ; Pas de SMS !
    Votez pour les messages qui vous ont aidés...

  12. #12
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    Voila la page en question, je viens de tester ta solution mais j'ai toujours le même problème, une scroll vertical au centre.

    J'aimerai que cette scroll passe sur la page entière, que si j'agrandit en hauteur le centre, la page entière se mets à la bonne taille automatiquement.

    Voici ma page:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
    <title></title>
    <style TYPE="text/css">
    	html, body {width:100%; height:100%; margin:0px; padding:0px;} 
    img {border:0px;}
    p {margin:0px; padding:0px;}
    div.spacer {height:1px; clear:both;}
    br.spacer {clear:both; visibility:hidden;}
    h1 {color:#160250; font-size:22px;}
    div.category {padding-left:15px;}
    h2 {color:#cc0000; font-size:18px;}
    p.category {margin-top:10px; font-size:14px;}
    a.category {color:#000000; font-size:14px; font-weight:bold;}
    a.category:hover {color:#ffffff;}
    #col_left {float:left; width:200px; height:100%; background-color:#73afe6;}
    div.country {float:left; padding-left:25px; margin-top:30px;}
    a.country {opacity: 1; filter:alpha(opacity=100);}
    a.country :hover{opacity: 0.4; filter:alpha(opacity=40);}
    #col_right {float:right; width:200px; height:100%; background-color:#73afe6;}
    #center {height:100%; text-align:center; overflow-x:hidden;
    overflow-y:visible;}
    div.logo {width:100%; text-align:center; margin-top:10px;}
    div.contenu_descript {margin-top:30px; text-align:left;}
    div.header {border-bottom:1px solid #73afe6; padding-bottom:5px; margin-left:30px; margin-right:30px;}
    span.titre_box {color:#73afe6; font-weight:bold;}
    span.bleu_mar {color:#160250; font-weight:bold;}
    div.box {border:1px solid #73afe6; margin-top:50px; margin-left:30px; padding:5px; width:300px; padding-bottom:10px; text-align:left;}
    div.saison {border-top:1px solid #73afe6; float:right; margin-top:50px;  margin-right:30px; width:400px;}
    li {text-align:left;}
    div.footer { margin-top:50px; margin-left:30px; margin-right:30px; border:1px solid #73afe6; padding:10px;}
    </style>
    </head>
    <body>
    <div id="col_left"></div>
    <div id="col_right"></div>
    <div id="center">
      <div class="contenu_descript">
        <form name="contenu" method="post" action="modif_ok.html">
        <div class="header">
    	  <div style="float:left;"><p><span class="titre_descript"><input type="text" size="15" name="nom" value="" /> - <input type="text" name="ref" size="8" value="" /> - </span><span class="red"><input type="text" size="15" name="vue" value="" /></span></p></div>
    	  <div style="float:right;"><p><span class="red"><input type="text" size="15" name="expo" value="" /></span> | <span class="bleu_mar"><input type="text" size="5" name="superf" value="" /></span></p></div>
    	  <div class="spacer"><br class="br" /></div>
    	</div>
    	<div class="box" >
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span></p></div>
    	  <p style="margin-top:20px; padding-left:30px;"><span style="color:#990099;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#cc0000;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ff6600;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ffcc00;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#009900;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#4999de;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#3333cc;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	</div>
    	<div class="box">
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span><br style="font-size:10px" />
    	  <span style="font-size:12px;"><input type="text" name="det_titre_box" size="20" value="" /></span></p></div>
    	  <div style="float:left;margin-top:20px; padding-left:30px;"><p><span style="color:#990099;"></span></p></div><div style="float:left;margin-top:20px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#3333cc;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#cc0000;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#ff6600;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	</div>
    	<div class="box">
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span><br /><br />
    	  <span style="font-size:12px;"><input type="text" name="det_titre_box" size="20" value="" /></span></p></div>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ffcc00;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#cc0000;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	</div>
    	<div class="saison">
    	  <ul>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	  </ul>
    	</div>
    	<div class="spacer"><br class="spacer" /></div>
    	<div class="footer">
    	  <textarea cols="94" rows="5" name="text_descript"></textarea>
    	</div>
    	<div style="text-align:center; margin-top:50px;"><input type="submit" value="Modifier" /></div>
    	</form>
      </div>
    </div>
    </body>
    </html>

  13. #13
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Et pourquoi ne pas faire ainsi :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
    <title></title>
    <style TYPE="text/css">
    	html, body {width:100%; height:100%; margin:0px; padding:0px;} 
    img {border:0px;}
    p {margin:0px; padding:0px;}
    div.spacer {height:1px; clear:both;}
    br.spacer {clear:both; visibility:hidden;}
    h1 {color:#160250; font-size:22px;}
    div.category {padding-left:15px;}
    h2 {color:#cc0000; font-size:18px;}
    p.category {margin-top:10px; font-size:14px;}
    a.category {color:#000000; font-size:14px; font-weight:bold;}
    a.category:hover {color:#ffffff;}
     
    div.country {float:left; padding-left:25px; margin-top:30px;}
    a.country {opacity: 1; filter:alpha(opacity=100);}
    a.country :hover{opacity: 0.4; filter:alpha(opacity=40);}
     
     
    body { background-color:#73afe6; }
    #center { margin:0px auto;padding:0px;width:775px;text-align:left;background-color:white; }
     
    div.logo {width:100%; text-align:center; margin-top:10px;}
    div.contenu_descript {margin-top:30px; text-align:left;}
    div.header {border-bottom:1px solid #73afe6; padding-bottom:5px; margin-left:30px; margin-right:30px;}
    span.titre_box {color:#73afe6; font-weight:bold;}
    span.bleu_mar {color:#160250; font-weight:bold;}
    div.box {border:1px solid #73afe6; margin-top:50px; margin-left:30px; padding:5px; width:300px; padding-bottom:10px; text-align:left;}
    div.saison {border-top:1px solid #73afe6; float:right; margin-top:50px;  margin-right:30px; width:400px;}
    li {text-align:left;}
    div.footer { margin-top:50px; margin-left:30px; margin-right:30px; border:1px solid #73afe6; padding:10px;}
    </style>
    </head>
    <body>
     
     
    <div id="center">
      <div class="contenu_descript">
        <form name="contenu" method="post" action="modif_ok.html">
        <div class="header">
    	  <div style="float:left;"><p><span class="titre_descript"><input type="text" size="15" name="nom" value="" /> - <input type="text" name="ref" size="8" value="" /> - </span><span class="red"><input type="text" size="15" name="vue" value="" /></span></p></div>
    	  <div style="float:right;"><p><span class="red"><input type="text" size="15" name="expo" value="" /></span> | <span class="bleu_mar"><input type="text" size="5" name="superf" value="" /></span></p></div>
    	  <div class="spacer"><br class="br" /></div>
    	</div>
    	<div class="box" >
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span></p></div>
    	  <p style="margin-top:20px; padding-left:30px;"><span style="color:#990099;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#cc0000;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ff6600;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ffcc00;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#009900;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#4999de;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#3333cc;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	</div>
    	<div class="box">
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span><br style="font-size:10px" />
    	  <span style="font-size:12px;"><input type="text" name="det_titre_box" size="20" value="" /></span></p></div>
    	  <div style="float:left;margin-top:20px; padding-left:30px;"><p><span style="color:#990099;"></span></p></div><div style="float:left;margin-top:20px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#3333cc;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#cc0000;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	  <div style="float:left;margin-top:5px; padding-left:30px;"><p><span style="color:#ff6600;"></span></p></div><div style="float:left;margin-top:5px; padding-left:5px;"><p><input size="30" type="text" name="rouge_descr" value="" /><br /><input type="text" name="prix_nuite" value="" /></p></div>
    	  <div class="spacer"><br class="spacer" /></div>
    	</div>
    	<div class="box">
    	  <div style="border-bottom:1px solid #73afe6; padding-bottom:5px;"><p><span class="bleu_mar">&gt; <input type="text" size="30" name="titre_box" value="" /></span><br /><br />
    	  <span style="font-size:12px;"><input type="text" name="det_titre_box" size="20" value="" /></span></p></div>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#ffcc00;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	  <p style="margin-top:5px; padding-left:30px;"><span style="color:#cc0000;"></span> <input size="30" type="text" name="rouge_descr" value="" /></p>
    	</div>
    	<div class="saison">
    	  <ul>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	    <li><input size="50" type="text" name="saison_1" value="" /></li>
    	  </ul>
    	</div>
    	<div class="spacer"><br class="spacer" /></div>
    	<div class="footer">
    	  <textarea cols="94" rows="5" name="text_descript"></textarea>
    	</div>
    	<div style="text-align:center; margin-top:50px;"><input type="submit" value="Modifier" /></div>
    	</form>
      </div>
    </div>
    </body>
    </html>
    Je sais la présentation n'est pas parfaite, mais je t'ai juste montré le principe, pour le reste tu peux corriger toi même.

    Avec ton système c'est normal que tu ais l'ascenseur sur le div du milieu vu que tu y as mis overflow alors que sa taille est supérieure à celle que tu as indiqué (height: 100%)
    Vous souhaitez participer à la rubrique (X)HTML/CSS, contactez moi.
    débutez avec les CSS
    Pas de MP pour des questions techniques ! Mode d'emploi du forum ; Règles ; Pensez à la balise code ; Pas de SMS !
    Votez pour les messages qui vous ont aidés...

  14. #14
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    105
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 105
    Points : 39
    Points
    39
    Par défaut
    Oui lol bonne idée...
    Je me casse la tête pour rien la en faite.

    Merci de ton aide ;-)

  15. #15
    Rédacteur
    Avatar de Halleck
    Homme Profil pro
    Consultant PHP
    Inscrit en
    Mars 2003
    Messages
    597
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Consultant PHP

    Informations forums :
    Inscription : Mars 2003
    Messages : 597
    Points : 878
    Points
    878
    Par défaut
    Citation Envoyé par nico341 Voir le message
    Bonjour, j'aurai une question asser simple, est ce possible de faire des calcules dans les dimensions d'une div comme par exemple:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    div.centre {width:(100%)-200px; height:100%;}
    Pour en revenir à la question initialie, oui c'est possible, mais que sous IE (JS) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    width:expression((largeurwindow - 200) + "px");
    Zend PHP Certified Engineer, Certifié Symfony2
    blog : blog.lepine.pro
    Secrétaire de l'AFUP (Association des Utilisateurs de PHP)

Discussions similaires

  1. Etats et calculs dans les contrôles
    Par Emayald dans le forum IHM
    Réponses: 6
    Dernier message: 22/02/2009, 21h35
  2. Faire des calculs dans les états
    Par bobosh dans le forum IHM
    Réponses: 1
    Dernier message: 09/09/2008, 13h36
  3. Hiérarchie dans les dimensions - OLAP
    Par LeLapinVengeur dans le forum Conception/Modélisation
    Réponses: 8
    Dernier message: 23/05/2008, 16h45
  4. calcul dans les requêtes et left join
    Par jejeman dans le forum Requêtes
    Réponses: 5
    Dernier message: 13/07/2007, 15h34
  5. Calcul dans les sous-formulaires
    Par rafa55 dans le forum Access
    Réponses: 3
    Dernier message: 21/06/2006, 10h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo