Skip to main content
mylenep57179482
Participant
April 21, 2018
Answered

CSS apparait pas en règle cible

  • April 21, 2018
  • 1 reply
  • 485 views

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 has been closed for replies.
    Correct answer mylenep57179482

    It is done.


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

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    April 21, 2018

    Are you working in a defined local site folder?

    Have you saved your file?

    Please show us your code. 

    Nancy O'Shea— Product User & Community Expert
    mylenep57179482
    Participant
    April 21, 2018

    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>

    Nancy OShea
    Community Expert
    Community Expert
    April 22, 2018

    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">

    Nancy O'Shea— Product User & Community Expert