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 :

[CSS] Problème d'affichage sur Mozilla


Sujet :

CSS

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 4
    Points : 1
    Points
    1
    Par défaut [CSS] Problème d'affichage sur Mozilla
    Bonjour,

    Je suis en train de faire un site Internet en CSS. Sur Internet Explorer pas de soucis.
    Par contre, sur Mozilla, le cadre bleu de la page
    http://www.ctgimmobilier.fr/acheter.php se met sous la photo alors que je voudrais qu'il soit aligner sur la droite.

    Voici ma feuille de style :
    body{
    background-color:#FFF9E6;
    margin-top:10px;
    padding:0px;
    text-align:center;
    font-family:verdana;
    font-size:10px;
    }

    #global{
    background:url(images/fond.gif) no-repeat;
    background-position:center top;
    position:fixed !important;
    position:absolute;
    width:855px;
    height:596px;
    left:50%;
    margin-left:-427.5px;
    text-align:center;
    }

    #haut{
    width:855px;
    height:110px;
    }

    #menu{
    background:url(images/fond_menu.gif) no-repeat;
    border:solid 1px #0079C1;
    width:848px;
    height:20px;
    margin:3px 0px 5px 2px;
    text-align:center;
    line-height:20px;
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    }

    #conteneur{
    width:100%;
    height:400px;
    margin-top:5px;
    padding-top:15px;
    }

    #gauche{
    float:left;
    width:35%;
    height:320px;
    margin:0px 20px 10px 10px;
    text-align:left;
    }

    #droite{
    height:320px;
    margin-right:20px;
    text-align:left;
    }

    #bas{
    background:url(images/fond_bas.gif) no-repeat;
    border:solid 1px #0079C1;
    width:848px;
    margin-left:2px;
    }

    #menu_bas{
    width:848px;
    height:15px;
    margin:0px auto 0px auto;
    text-align:center;
    color:#0079C1;
    font-size:11px;
    }

    #photo_gauche{
    height:225px;
    margin-bottom:20px;
    border:0;
    }

    .header{
    margin-bottom:15px;
    }

    .texte{
    width:240px;
    height:65px;
    margin:10px auto 2px 15px;
    text-align:left;
    font-size:10px;
    }

    .texte_photo{
    float:left;
    height:74px;
    margin-top:3px;
    padding-left:5px;
    font-size:10px;
    }

    .texte_bas{
    padding-top:1px;
    padding-bottom:1px;
    text-align:center;
    color:#0079C1;
    font-size:11px;
    font-weight:bold;
    }

    table{
    background-color:#E8EFF4;
    width:230px;
    margin-top:20px;
    margin-left:20px;
    color:#0079C1;
    font-police:verdana;
    font-size:11px;
    font-weight:bold;
    }

    td{
    border:solid 1px #0079C1;
    }

    img{
    margin-top:3px;
    border:0;
    }

    h2{
    font-size:10px;
    font-weight:normal;
    }

    a:link{
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a:visited{
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a:hover{
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a:active{
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.menu:link{
    text-align:center;
    line-height:20px;
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.menu:visited{
    text-align:center;
    line-height:20px;
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.menu:hover{
    text-align:center;
    line-height:20px;
    color:#0079C1;
    font:11px/20px bold;
    font-family:verdana;
    font-weight:bold;
    text-decoration:none;
    }

    a.menu:active{
    text-align:center;
    line-height:20px;
    color:#0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.lien:link{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.lien:visited{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

    a.lien:hover{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    font-weight:bold;
    text-decoration:none;
    }

    a.lien:active{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }


    J'espère que l'on pourra m'aider.

    Merci beaucoup.

    Vinix


  2. #2
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    38
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 38
    Points : 44
    Points
    44
    Par défaut
    Ton cadre bleu , c est un formulaire plasse dans un div (sans id ou class) si j'ai bien compris. En mettant la propriete float:right; a ce div , ca devrait rentrer dans l'ordre .

    Gaetan

  3. #3
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 4
    Points : 1
    Points
    1
    Par défaut Problème alignement
    Je te remercie avec le float :right cela me met bien le cadre à droite mais le petit soucis c'est que le cadre est à l'extrême droite et j'aimerais bien avoir moins d'espace au milieu.

    Vinix

  4. #4
    Membre confirmé Avatar de masu
    Inscrit en
    Février 2004
    Messages
    428
    Détails du profil
    Informations forums :
    Inscription : Février 2004
    Messages : 428
    Points : 484
    Points
    484
    Par défaut
    petits bugs au passage.
    vu que tu est en xhtml il fait teminer tes balises vide avec <balise />
    tu l'a bien fait pour les inputs mais pas pour les link et meta et img.

    edit: une petite faute de frape dans ton 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
     a.lien:link{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }
    
    a.lien:visited{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }
    
    a.lien:hover{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    font-weight:bold;
    text-decoration:none;
    }
    
    a.lien:active{
    color:##0079C1;
    font:11px/20px normal;
    font-family:verdana;
    text-decoration:none;
    }

  5. #5
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 4
    Points : 1
    Points
    1
    Par défaut Problème affichage Mozilla
    Ok je vais regarder ça.
    Merci bien
    C'est mon 1er site en CSS et donc bon ce n'est pas facile.

    Vinix

  6. #6
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    38
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 38
    Points : 44
    Points
    44
    Par défaut
    En fait tu veux positionner ton cadre bleu , juste a droite de l'image. Je pense qu'il faut que tu joue avec les marges , cf : http://web.developpez.com/faq/html/?...ROPRIETE_MARGE


    Bon courage

  7. #7
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 4
    Points : 1
    Points
    1
    Par défaut
    Je te remercie car j'ai mis un margin-left est en effet cela s'aligne bien comme je veux.

    Vinix

Discussions similaires

  1. probléme affichage des charts(histogramme) en gwt sur mozilla
    Par rwikus09 dans le forum GWT et Vaadin
    Réponses: 0
    Dernier message: 12/12/2010, 14h53
  2. le style .css ne s'applique pas sur mozilla
    Par steware1 dans le forum ASP.NET
    Réponses: 17
    Dernier message: 16/09/2010, 11h10
  3. Pb : CSS ok sur IE et pas sur Mozilla
    Par MelleMSak dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 09/01/2009, 13h52
  4. Réponses: 2
    Dernier message: 09/10/2004, 11h35
  5. DBGrid - Affichage sur 2 colonnes
    Par Grouik dans le forum Bases de données
    Réponses: 2
    Dernier message: 20/04/2004, 17h37

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