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

Dreamweaver: No presenta las CSS

New Here ,
Apr 04, 2017 Apr 04, 2017

Copy link to clipboard

Copied

Estoy haciendo un sitio, y a la hora de poner menú y pie de página los retiro en archivos aparte y los meto en una carpeta llamada constructores. Luego copio el código HTML del index original a cada fichero y borro el original, poniendo los includes. Pero no coge la hoja de estilos ni el javascript. ¿Por qué? Creo que es algo de las ubicaciones pero no lo entiendo muy bien. (Creo haberme explicado bien)

Views

276
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

correct answers 1 Correct answer

Community Expert , Apr 05, 2017 Apr 05, 2017

Include files should not contain links to JS or CSS files.   Those links go inside the <head> tag of your parent document.

Include files are for the relevant menu & footer code only.

Examples:

<nav>

     <ul>

          <li><a href="page1.php">Link 1</a></li>

          <li><a href="page2.php">Link 2</a></li>

          <li><a href="page3.php">Link 3</a></li>

     </ul>

</nav>

<footer> © 2017.  XYZ Website.  </footer>

Votes

Translate
Community Expert ,
Apr 04, 2017 Apr 04, 2017

Copy link to clipboard

Copied

When you include a file, your are placing its contents into the main document. If the main document resides in the root directory, then the associated CSS and JS files should be linked relative to the root directory.

As an example, my builders/includefile.html has a link to ../css/mystyles.css. This will not work once the code is included into the main document, this should read css/mystyles.css

Hopefully, I have explained it properly.

Wappler, the only real Dreamweaver alternative.

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
New Here ,
Apr 04, 2017 Apr 04, 2017

Copy link to clipboard

Copied

Pero ¿cómo modificar el código en el principal si solo tiene un include al includefile.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 04, 2017 Apr 04, 2017

Copy link to clipboard

Copied

The link in the include file needs to be adjusted.

Please give me the code for the include file and I will show you exactly what to do.

Wappler, the only real Dreamweaver alternative.

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 05, 2017 Apr 05, 2017

Copy link to clipboard

Copied

LATEST

Include files should not contain links to JS or CSS files.   Those links go inside the <head> tag of your parent document.

Include files are for the relevant menu & footer code only.

Examples:

<nav>

     <ul>

          <li><a href="page1.php">Link 1</a></li>

          <li><a href="page2.php">Link 2</a></li>

          <li><a href="page3.php">Link 3</a></li>

     </ul>

</nav>

<footer> © 2017.  XYZ Website.  </footer>

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