Skip to main content
mylenep57179482
Participant
Apr 21, 2018 11:38 PM UTC
Answered

CSS apparait pas en règle cible

Je suis débutante avec le code et ce programme.

J'ai créer un style CSS, mais il n'apparait pas dans le tableau propriété-css-règle cible. J'ai suivi toute les étapes des didacticiel de la compagnie Adobe.

Une suggestion?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    mylenep57179482
    mylenep57179482Correct answer
    Participant
    Apr 22, 2018 3:08 AM UTC

    It is done.


    J'ai trouvé. J'avais oublié mon "." dans mon sélecteur !!!

    7 replies

    Nancy OShea
    Community Expert
    Community Expert
    Apr 21, 2018 11:49 PM UTC

    Are you working in a defined local site folder?

    Have you saved your file?

    Please show us your code. 

    Translate
    Nancy O'Shea— Product User & Community Expert
    mylenep57179482
    Participant
    Apr 21, 2018 11:56 PM UTC

    J'enregistre sur le disque dur de mon ordinateur. Toutes mes pages web sont enregistrées dans le même fichier. J'ai enregistré tout avant d'essayer de mettre le css dans la règle cible.

    <!doctype html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>Services offerts</title>

    <link href="file:///C|/Users/Utilisateur/Desktop/Mylene Perron Site Web/MP Titres.css" rel="stylesheet" type="text/css">

    </head>

    <body>

        <table>

      <tbody>

        <tr>

          <td colspan="3">Toilettage</td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td> </td>

        </tr>

      </tbody>

    </table>

    </body>

    </html>

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Apr 22, 2018 12:06 AM UTC

    You have not saved your HTML document to your local site folder yet.

    <link href="file:///C|/Users/Utilisateur/Desktop/Mylene Perron Site Web/MP Titres.css" rel="stylesheet" type="text/css">

    If your HTML page is in the same folder as your CSS file, the link should be this without spaces.  Spaces in file names are not allowed on the web.

    <link href="MPTitres.css" rel="stylesheet" type="text/css">

    Translate
    Nancy O'Shea— Product User & Community Expert