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

What can I do to reckognise the basic.css file?

Community Beginner ,
Jan 25, 2017 Jan 25, 2017

I'm working with the Adobe Dreamweaver CS6. From Site > New Site I've set the Local Site Folder to

C:\Progress\beginning_css3_master\beg-css3-master\

My css file is at the following path:

C:\Progress\beginning_css3_master\beg-css3-master\44738_ch02_files\ch02\begin\css\basic.css

I've attached the basic.css style sheet by adding the following <link> tag just before the closing </head> tag in basic.html:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Basic CSS Selectors</title>

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

</head>

But the basic.css styles doesn't affect the HTML markup.

My desire is to keep he following path, but anyway what can I do to reckognise the basic.css file?

C:\Progress\beginning_css3_master\beg-css3-master\44738_ch02_files\ch02\begin\css\basic.css

242
Translate
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

LEGEND , Jan 25, 2017 Jan 25, 2017

Replace -

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

with

<link href="C:\Progress\beginning_css3_master\beg-css3-master\44738_ch02_files\ch02\begin\css\basic.css" type="text/css" "rel=stylesheet">

Whilst this may work, you should really define a site in Dw, and let Dw handle the file paths correctly, as it would do if you where creating an actual site.

Translate
LEGEND ,
Jan 25, 2017 Jan 25, 2017

Replace -

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

with

<link href="C:\Progress\beginning_css3_master\beg-css3-master\44738_ch02_files\ch02\begin\css\basic.css" type="text/css" "rel=stylesheet">

Whilst this may work, you should really define a site in Dw, and let Dw handle the file paths correctly, as it would do if you where creating an actual site.

Translate
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 ,
Jan 25, 2017 Jan 25, 2017
LATEST

Your files paths are very complicated. Did you do this intentionally or was this obtained from a 3rd party?

I like to keep my sites organized very simply.

Site:  SiteName:  (C:\SiteName\)

    > images/

    > scripts/

    > styles/

     index.html

     about.html

     projects.html

     services.html

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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