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 :

Problème avec iE (marche tès bien avec firefox)


Sujet :

CSS

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 7
    Points : 5
    Points
    5
    Par défaut Problème avec iE (marche tès bien avec firefox)
    Bonjour, pour mon site en test, que vous piouvez trouver ici : http://tutoriaux-photoshop.fr/Hardware/1/ j'ai un desing extensible (normalement) cela marche très bien pour firefox sauf que pour IE cela me rapetisse tout.(très embetant pour le forum)
    j'aimerai qu'il occupe toute la place dispo par rapport a l'écran comme le fait firefox

    J'ai aussi un problème pour les résolutions petites (1024 / 728), le header continue au lieu de s'adapter a l'écran.(de quelques cm)


    Merci beaucoup pour votre aide

    Voila mon code CSS :
    Code : CSS


    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
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
     
     
    BODY {
    scrollbar-face-color: #a9a9a9a9;
    scrollbar-shadow-color: Black;
    scrollbar-highlight-color: Black;
    scrollbar-3dlight-color: #AA8A77;
    scrollbar-darkshadow-color: #A9A9A9;
    scrollbar-track-color: #A9A9A9;
    scrollbar-arrow-color: Black;
    FONT-WEIGHT: normal; FONT-SIZE: 9pt;
    FONT-FAMILY: Verdana,Helvetica,Arial,sans-serif;
    TEXT-ALIGN: justify; TEXT-DECORATION: none;
    margin: 2px 2px 2px 2px;
    background: url(../images/line.gif) #999999;
    background-repeat: repeat-x;
    /*BACKGROUND-COLOR: #396da6;*/
    }
     
    #top_menu {
    height: 30px;
    float: left;
    width: 1040px;
     
    }
    #mainlevel-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    float: left;
    }
    #mainlevel-nav li {
    width: auto !important;
    width: 15%;
    float: left;
    margin: 0;
    font-size: 10px;
    height: 30px;
    line-height: 27px;
    white-space: nowrap;
    background: url(../images/bt_left.gif) top left no-repeat;
    margin-right: 5px;
    }
    #mainlevel-nav a {
    font-weight: bold;
    height: 30px;
    display: block;
    padding-left: 5px;
    padding-right: 17px;
    text-decoration: none;
    color: White;
    background: url(../images/bt_right.gif) top right no-repeat;
    margin-left: 12px;
    }
    #mainlevel-nav li:hover, #mainlevel-nav li.one {
    background: url(../images/bt_left_h.gif) top left no-repeat;
    }
    #mainlevel-nav li:hover a, #mainlevel-nav li.one a{
    background: url(../images/bt_right_h.gif) top right no-repeat;
    }
    .header {
    background: url(../images/header.jpg);
    background-repeat: no-repeat;
    background-color: #E4E4E4;
    background-position: left;
    border-top: 0px solid #000066;
    border-left: 0px solid #000066;
    border-right: 0px solid #000066;
    border-bottom: 0px solid #000066;
    color: #990000;
    margin-top: 9px;
    }
    a ,a:active, a:link {
    font-family: Verdana,Helvetica,Arial,sans-serif;
    COLOR: #acacac; FONT-FAMILY: Verdana, "Arial CE", Arial;
    FONT-SIZE: 9pt; FONT-VARIANT: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none;
     
    }
    a:hover {
    COLOR: #980000; FONT-FAMILY: Verdana,Helvetica,Arial,sans-serif;
    FONT-SIZE: 9pt; FONT-WEIGHT: normal; TEXT-DECORATION: none
     
    }
    td, tr, p, div {
    font-family: Verdana, Arial, Helvetica, sans-serif;
     
    COLOR: #000000; FONT-FAMILY: Verdana,Helvetica,Arial,sans-serif; FONT-SIZE: 9pt; FONT-WEIGHT: normal; TEXT-DECORATION: none;
     
    }
    ul {
    margin: 0px 0px 0px 0px;
    }
    hr {
    background: #CCCCCC;
    height: 2px;
    width: 90%;
    }
    .title {
    font-family: "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: bold;
    margin-right: 10px;
    color: #006600;
    }
    .pathway {
     
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #666666;
    font-weight: bold;
    margin-left: 10px;
    }
    a.pathway:link, a.pathway:visited {
    color: #000000;
    font-size: 10px;
    margin-left: 10px;
    }
    a.pathway:hover {
    color: #000099;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 10px;
    }
    a.mainlevel:link, a.mainlevel:visited {
    color: #666666;
    background-position: left;
    display: block;
    background: url(../images/menu3.gif) no-repeat;
    text-align: left;
    font-weight: bold;
    font-size: 11px;
    vertical-align: middle;
    padding-top: 5px;
    padding-left: 5px;
    height: 13px;
    width: 100%;
    }
    a.mainlevel:hover {
    color: #CCCCCC;
    background-position: left;
    display: block;
    background: url(../images/menu2.gif) no-repeat;
    text-align: left;
    font-weight: bold;
    font-size: 11px;
    vertical-align: middle;
    padding-top: 5px;
    padding-left: 6px;
    height: 13px;
    width: 100%;
    }
    a.mainmenu:link, a.mainmenu:visited {
    color: #000099; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 11px;
    }
    a.mainmenu:hover, {
    color: #666666; text-decoration: underline;
    }
    a.sublevel:hover {
    color: #818181;
    font-size: 10px;
    }
    a.sublevel:link, a.sublevel:visited {
    color: #666666;
    font-size: 10px;
    }
    a.category {
    font-family: Verdana,Helvetica,Arial,sans-serif;
    font-size: 10px;
    color: #666666;
    }
    a.category:hover {
    font-family: Verdana,Helvetica,Arial,sans-serif;
    font-size: 10px;
    color: #666666;
    }
    table.moduletable {
    margin: 4px 0px 10px 4px;
    width: 100%;
    color: Black;
    border-top:1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    }
    table.moduletable th {
    font-size: 12px;
    font-weight : bold;
    font-family : Verdana, Arial, Helvetica, sans-serif;
    color : #FFFFFF;
    height: 26px;
    text-align : left;
    width : 100%;
    padding: 3px 1px 3px 5px;
    background: url(../images/headermod.jpg) no-repeat;
     
    }
    table.moduletable td {
    padding: 1px 3px 1px 1px;
     
    }
    .inputbox {
    font-family: Verdana,Helvetica,Arial,sans-serif;
    font-size: 10px;
    color: Black;
    background-color: #CCCCCC;
    border-style: solid;
    border-color: Black ;
    border: 1px;
    }
    .button {
    font-family: Verdana,Helvetica,Arial,sans-serif;
    font-size: 10px;
    color: #000000;
    background-color: #ececec;
    border-width: 1px;
    border-color: #adadad;
    }
    table.contact {
    border-color: #929292;
    background-color: #DCDAD0;
    }
    table.contact td.icons {
    background-color: #D3DEE1;
    }
    table.contact td.details {
    font-size: 11px;
    }
    .poll {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-align: left;
    color: #666666;
     
    padding: 10px 1px 10px 1px;
    }
    table.pollstableborder td {
    padding: 2px;
    text-align: left;
     
    }
    .sectiontableheader {
    background-color : #CCCCCC;
    color: #000099;
    font-weight: bold;
     
    }
    .sectiontableentry1 {
    background-color : #EFEFEF;
    padding: 1px 1px 1px 1px;
    text-align: left;
    font-size: 10px;
    }
    .sectiontableentry2 {
    background-color : #DDDDDD;
    padding: 1px 1px 1px 1px;
    text-align: left;
    font-size: 10px;
    }
    .small {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #999999;
    text-decoration: none;
    font-weight: medium;
    }
    .smalldark {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #000000;
    text-decoration: none;
    font-weight: normal;
    }
    .contentpane {
    padding: 1px 1px 1px 1px;
    }
    .contentpaneopen {
    padding: 1px 1px 1px 1px;
    width: 100%;
    }
    .contentheading, .componentheading {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    height: 30px;
    color: #CCCCCC;
    text-align: center;
    padding-center: 0px;
    background: url(../images/content.jpg) no-repeat;
    BORDER-RIGHT: 0px solid; PADDING-RIGHT: 3px; BORDER-TOP: #FFFFFF 1px solid;
    PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; MARGIN: 1px 4px;
    BORDER-LEFT: #FFFFFF 1px solid; COLOR: White; PADDING-TOP: 0px; BORDER-BOTTOM: #FFFFFF 1px solid;
    TEXT-ALIGN: center;
    }
    .date {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: Black;
    text-align: left;
    padding-left: 3px;
    padding-bottom: 3px;
    }
    .infor {
    COLOR: #666666; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    FONT-SIZE: 7pt; FONT-WEIGHT: bold; TEXT-DECORATION: none
    }
    .line{
    text-align: left;
    padding-left: 2px;
    BORDER-RIGHT: 0px solid; PADDING-RIGHT: 3px; BORDER-TOP: 0px solid;
    PADDING-LEFT: 3px; PADDING-BOTTOM: 1px; MARGIN: 1px 4px;
    BORDER-LEFT: Black 3px solid; COLOR: White; PADDING-TOP: 1px; BORDER-BOTTOM: #D3D3D3 3px solid;
    TEXT-ALIGN: left;
    }
    .foot {
    background-color: #E4E4E4;
    background-position: left;
    border-top: 0px solid #666666;
    border-left: 0px solid #666666;
    border-right: 0px solid #666666;
    border-bottom: 0px solid #666666;
    color: #990000;
    margin-top: 2px;
    background: url(../images/foot.gif) repeat-x top;
    }
    .path {
    background: url(../images/path.jpg) repeat-x;
    background-position: left;
    }








    Au besoin le html :
    Code : HTML

    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
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <!--[if gte IE 5.5000]>
    <script language="JavaScript">
    function correctPNG()
    {
    for(var i=0; i<document.images.length; i++)
    {
    var img = document.images[i]
    var imgName = img.src.toUpperCase()
    if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
    {
    var imgID = (img.id) ? "id='" + img.id + "' " : ""
    var imgClass = (img.className) ? "class='" + img.className + "' " : ""
    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
    var imgStyle = "display:inline-block;" + img.style.cssText
    if (img.align == "left") imgStyle = "float:left;" + imgStyle
    if (img.align == "right") imgStyle = "float:right;" + imgStyle
    if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
    + "filter:progidXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
    img.outerHTML = strNewHTML
    i = i-1
    }
    }
    }
    window.attachEvent("onload", correctPNG);
    </script>
    <![endif]-->
     
    <title><?php echo $mosConfig_sitename; ?></title>
    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
    <?php include ("includes/metadata.php"); ?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/joomlabox0905/css/template_css.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/joomlabox0905/images/favicon.ico" />
    <?php if($my->gid >= "1"){ ?>
    <?php include ("editor/editor.php"); ?>
    <?php initEditor(); ?>
    <?php } ?>
     
    </head>
     
    <body>
     
    <div align="center">
    <table width="100%" height="120" border="0" cellpadding="0" cellspacing="0" >
    <tr>
    <td height="96" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <th width="100%" height="100" align="center" valign="middle" scope="col" class="header">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <th scope="col"><div align="left"><a href="http://tutoriaux-photoshop.fr/hardware%202/I-net/"><img src="<?php echo $mosConfig_live_site;?>/templates/joomlabox0905/images/logo.png" border="0" width="348" height="70" alt=""></a></div></th>
    <th scope="col"><div align="right">
    <?php mosLoadComponent( "banners" ); ?>
    </div></th>
    </tr>
    </table>
    </th>
    </tr>
     
    <tr>
    <th width="820" height="40" align="left" valign="bottom" scope="row" class="path">
    <table width="820" border="0" cellspacing="0" cellpadding="0" align="right">
    <tr>
    <th width="320" align="left" valign="middle" scope="col">&nbsp;</th>
    <th width="500" align="left" valign="bottom" scope="col">
    <script type="text/javascript">
     
    one = function() {
    var sfEls = document.getElementById("top_menu").getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
    this.className+="one";
    }
    sfEls[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp("one\\b"), "");
    }
    }
    }
    if (window.attachEvent) window.attachEvent("onload", one);
    </script>
    <div id="top_menu"><?php if (mosCountModules( "user3" )) { ?><?php mosLoadModules ( 'user3',-1); ?><?php } ?></div></th>
    </tr>
    </table></th>
    </tr>
    </table></td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFFF">
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="2" cellpadding="0">
    <tr>
    <td colspan="3" align="left" valign="top">
    <?php mosPathWay(); ?>
    </td>
    </tr>
    <tr>
    <td width="160" align="left" valign="top">
    <?php mosLoadModules ( 'left' ); ?>
    <p>
    <?php mosLoadModules ( 'user4' ); ?>
    </p>
    <p>
    <?php mosLoadModules ( 'user6' ); ?>
    </p>
    </td>
    <td width="500" align="left" valign="top">
    <?php mosMainBody(); ?>
    </td>
    <td width="160" align="left" valign="top">
    <?php mosLoadModules ( 'right' ); ?>
    <p>
    <?php mosLoadModules ( 'user5' ); ?>
    </p>
    <p>
    <?php mosLoadModules ( 'user7' ); ?>
    </p>
    </td>
    </tr>
    <tr>
    <td width="160" align="left" valign="top">&nbsp;</td>
    <td width="500" align="left" valign="top">
    <div align="center">
    <?php mosLoadModules ( 'user8' ); ?>
    </div>
    </td>
    <td width="160" align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td colspan="3" align="center" valign="top">
    <div align="center">
    <?php mosLoadModules ( 'bottom' ); ?>
    </div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="foot">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
     
    <td> <div align="center"> Conception &amp; réalisation <a href="http://www.tutoriaux-photoshop.fr">Digitix</a><br /> Optimisé pour Firefox
     
    <br />
     
    </div></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  2. #2
    Membre chevronné Avatar de Oluha
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 183
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 183
    Points : 1 967
    Points
    1 967
    Par défaut
    déjà c'est normal que ca passe pas en 1024*768 vu que ton "top_menu" fais 1040px de large

    Ensuite, la mise en forme avec un tableau est à éviter.

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 7
    Points : 5
    Points
    5
    Par défaut
    Ouais mais j'aimerais que mon topmenu s'élargisse en même temps que la résolutionpour s'adapter a tout l'ecran

  4. #4
    Membre chevronné Avatar de Oluha
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 183
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 183
    Points : 1 967
    Points
    1 967
    Par défaut
    essaye width: 100% dans ce cas

Discussions similaires

  1. Réponses: 1
    Dernier message: 28/02/2014, 17h00
  2. Réponses: 18
    Dernier message: 19/03/2010, 12h10
  3. Réponses: 4
    Dernier message: 25/09/2009, 23h54
  4. Réponses: 2
    Dernier message: 22/09/2007, 11h39
  5. [RegEx] [bbcode] marche pas bien avec associations
    Par Woufeigh dans le forum Langage
    Réponses: 4
    Dernier message: 02/05/2007, 20h32

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