Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

CSS apparait pas en règle cible

Community Beginner ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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?

Views

381
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

Ok j'ai enregistré. ça donne cela : Mais il appartait toujours pas dans règle cible.

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Services offerts</title>

<link href="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>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

If you please, copy & paste the code below into  a new, blank document and save as test.html.

<!doctype html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>Test de Table</title>

<style>

#maTable {

    width: 75%;

    margin: 0 auto;

    border: 5px solid #0D8440;

    }

    #maTable th {

    background-color: #222;

    color: #FFF;

    text-align: center;

}

#maTable td {

vertical-align:center;

color: #333

}

</style>

</head>

<body>

<table id="maTable">

<tr>

<th>Titre</th>

<th>Titre</th>

<th>Titre</th>

</tr>

<tr>

<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </td>

<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id praesentium earum, ut perspiciatis magni facilis cupiditate quisquam voluptate odit accusamus facere minima at distinctio, doloribus saepe dignissimos magnam aperiam iusto.</td>

<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </td>

</tr>

</table>

</body>

</html>

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

It is done.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines