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

HTML Discussion :

[HTML] bordure html qui ne devrait pas exister


Sujet :

HTML

  1. #1
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut [HTML] bordure html qui ne devrait pas exister
    voila 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
    <html>
    <style type="text/css">
    .rule-ListHeader {
            background: #CDDDE4 none repeat scroll 0 0;
            border-bottom: 1px solid #FFFFFF;
            color: #000000;
            font-size: 12px;
            font-weight: bold;
            margin: 0 0 1px;
            padding: 3px 0 3px 8px;
            text-align: center;
            text-transform: uppercase;
        padding: 0px 0px 0px 0px;
    }
     
    .rule-SelectedRow {
            background: url(images/gray_gradient.gif) repeat-x;
    }
     
    .rule-List {
            font-size: 11px;
            font-weight: normal;
            text-align: center;
            padding: 3px 3px 3px 8px;
            background: #F1F1F1 none repeat scroll 0 0;
    }
     
    .rule-ListEvenRow,.DatePicker .weekheader {
            font-size: 11px;
            font-weight: normal;
            text-align: center;
            padding: 3px 3px 3px 8px;
            background: #F1F1F1 none repeat scroll 0 0;
    }
    </style>
    <body>
    <table border="0" class="rule-List" style="width: 100%;">
    	<tr class="rule-ListHeader">
    		<td style=""></td>
    		<td>*</td>
    		<td>Name </td>
    		<td>Last modified </td>
    		<td>Status</td>
    	</tr>
    </table>
    </body>
    </html>
    A l'affichage j'ai le header de mon tableau bleu mais avec des séparations grises et j'aimerais me débarrasser de ces bordures. Je ne vois pas du tout d'où elle vienne

  2. #2
    Modérateur
    Avatar de Vil'Coyote
    Homme Profil pro
    Développeur adélia & Web
    Inscrit en
    Février 2008
    Messages
    4 583
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur adélia & Web
    Secteur : Industrie

    Informations forums :
    Inscription : Février 2008
    Messages : 4 583
    Par défaut
    salut,tu as essayé en spprimant class="rule-List" de ton table?
    la vie n'est pas cirrhose des foies ...

    Avant de poster un message Rechercher n'est pas qu'une option.
    FAQ Web - Tuto Web

  3. #3
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Voilà le code modifié (indenté et en XHTML 1.0 Strict) :
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    	<head>
    		<title>Title</title>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    		<style type="text/css">
                            .rule-ListHeader {
                                    background: #CDDDE4 none repeat scroll 0 0;
                                    border-bottom: 1px solid #FFFFFF;
                                    color: #000000;
                                    font-size: 12px;
                                    font-weight: bold;
                                    margin: 0 0 1px;
                                    padding: 3px 0 3px 8px;
                                    text-align: center;
                                    text-transform: uppercase;
                                padding: 0px 0px 0px 0px;
                            }
                             
                            .rule-SelectedRow {
                                    background: url(images/gray_gradient.gif) repeat-x;
                            }
                             
                            .rule-List {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                                    padding: 3px 3px 3px 8px;
                                    background: #F1F1F1 none repeat scroll 0 0;
                            }
                             
                            .rule-ListEvenRow,.DatePicker .weekheader {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                                    padding: 3px 3px 3px 8px;
                                    background: #F1F1F1 none repeat scroll 0 0;
                            }
                    </style>
    	</head>
    	<body>
    		<table class="rule-List" style="width: 100%; border:0px;">
    			<tr class="rule-ListHeader">
    				<td style=""></td>
    				<td>*</td>
    				<td>Name </td>
    				<td>Last modified </td>
    				<td>Status</td>
    			</tr>
    		</table>
    	</body>
    </html>
    La bordure que tu vois est normal :
    c'est ne pas une bordure en fait, c'est la juste l'élément table que tu vois parce que tu lui a donné un padding et une couleur de background.

    Pour enlever ça, joue avec ces propriétés :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    .rule-List {
    	font-size: 11px;
    	font-weight: normal;
    	text-align: center;
    	padding: 3px 3px 3px 8px;
    	background: #F1F1F1 none repeat scroll 0 0;
    }

  4. #4
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut
    c'est plus ou moins idem. Au lieu d'avoir une séparation grise j'ai une séparation blanche.

  5. #5
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Parce que tu as du modifié la couleur ...

    Pour ne plus avoir de séparation :
    Enlève le padding et le background

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    .rule-List {
    	font-size: 11px;
    	font-weight: normal;
    	text-align: center;
    }
    C'est radical mais ça marche xD

  6. #6
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut

    C'est ce que j'ai fait, ca ne marche pas

  7. #7
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Humm bisard, j'ai testé le code ici et ça marche nickel ...

    Tu test avec quel navigateur ?

  8. #8
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut
    firefox3 et ie6. j'ai joint l'affichage que j'obtiens
    Fichiers attachés Fichiers attachés

  9. #9
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Alors je ne comprend pas. Je test sous firefox moi.

    As tu testé mon code ou tu as modifié le tiens ?

    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    	<head>
    		<title>Title</title>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    		<style type="text/css">
                            .rule-ListHeader {
                                    background: #CDDDE4 none repeat scroll 0 0;
                                    border-bottom: 1px solid #FFFFFF;
                                    color: #000000;
                                    font-size: 12px;
                                    font-weight: bold;
                                    margin: 0 0 1px;
                                    padding: 3px 0 3px 8px;
                                    text-align: center;
                                    text-transform: uppercase;
                                padding: 0px 0px 0px 0px;
                            }
                             
                            .rule-SelectedRow {
                                    background: url(images/gray_gradient.gif) repeat-x;
                            }
                             
                            .rule-List {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                            }
                             
                            .rule-ListEvenRow,.DatePicker .weekheader {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                                    padding: 3px 3px 3px 8px;
                                    background: #F1F1F1 none repeat scroll 0 0;
                            }
                    </style>
    	</head>
    	<body>
    		<table class="rule-List" style="width: 100%; border:0px;">
    			<tr class="rule-ListHeader">
    				<td style=""></td>
    				<td>*</td>
    				<td>Name </td>
    				<td>Last modified </td>
    				<td>Status</td>
    			</tr>
    		</table>
    	</body>
    </html>

  10. #10
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut
    j'avais modifié le mien mais je viens de testé le tiens idem

  11. #11
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Dans ce cas, tu dois avoir d'autres propriétés CSS qui s'appliquent et que nous ne voyons pas ici ...

    Test avec uniquement ce fichier, si ce n'est pas déjà le cas ...

    PS : En PJ mon aperçu.
    Le tour du tableau est blanc puisqu'il s'agit de la page
    Images attachées Images attachées  
    Fichiers attachés Fichiers attachés

  12. #12
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut
    J'ai l'impression que tu as le même affichage que moi alors que je veux un truc qui ressemble plutôt à ça
    Fichiers attachés Fichiers attachés

  13. #13
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    Ahh je comprend mieux, tu veux enlever les séparations intérieures ^^

    J'avais mal compris.

    Pour ça, utilise CELLSPACING="0" qui gère les espaces entre cellules :
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    	<head>
    		<title>Title</title>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    		<style type="text/css">
                            .rule-ListHeader {
                                    background: #CDDDE4 none repeat scroll 0 0;
                                    border-bottom: 1px solid #FFFFFF;
                                    color: #000000;
                                    font-size: 12px;
                                    font-weight: bold;
                                    margin: 0 0 1px;
                                    padding: 3px 0 3px 8px;
                                    text-align: center;
                                    text-transform: uppercase;
                                    padding: 0px 0px 0px 0px;
                            }
                             
                            .rule-SelectedRow {
                                    background: url(images/gray_gradient.gif) repeat-x;
                            }
                             
                            .rule-List {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                            }
                             
                            .rule-ListEvenRow,.DatePicker .weekheader {
                                    font-size: 11px;
                                    font-weight: normal;
                                    text-align: center;
                                    padding: 3px 3px 3px 8px;
                                    background: #F1F1F1 none repeat scroll 0 0;
                            }
                    </style>
    	</head>
    	<body>
    		<table CELLSPACING="0" class="rule-List" style="width: 100%; border:0px;">
    			<tr class="rule-ListHeader">
    				<td style=""></td>
    				<td>*</td>
    				<td>Name </td>
    				<td>Last modified </td>
    				<td>Status</td>
    			</tr>
    		</table>
    	</body>
    </html>

  14. #14
    Membre confirmé
    Inscrit en
    Avril 2006
    Messages
    86
    Détails du profil
    Informations forums :
    Inscription : Avril 2006
    Messages : 86
    Par défaut
    nickel je connaissais pas cette option merci

  15. #15
    Membre confirmé Avatar de thomas9501
    Homme Profil pro
    Chef de projet en SSII
    Inscrit en
    Décembre 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Chef de projet en SSII
    Secteur : Finance

    Informations forums :
    Inscription : Décembre 2006
    Messages : 102
    Par défaut
    De rien
    Ce fut long mais on y est arrivé

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 5
    Dernier message: 09/05/2015, 11h27
  2. Réponses: 4
    Dernier message: 25/08/2009, 14h47
  3. Lien html dans flash qui ne fonctionne pas?
    Par zuzuu dans le forum Flash
    Réponses: 5
    Dernier message: 08/12/2008, 17h01
  4. [HTML/XHTML] Tableau qui ne garde pas ses dimensions
    Par mimagyc dans le forum Balisage (X)HTML et validation W3C
    Réponses: 14
    Dernier message: 22/06/2007, 14h54

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