• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

CSS Stylesheets not being recognized?

New Here ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

Hi! I am using a website layout that I found for free (under the Creative Commons license). I have uploaded all its files exactly where they need to go, and both local and remote server match exactly. However, while Dreamweaver is reflecting the CSS stylesheets just fine, the stylesheets are not recognized in any web browser. How do I fix this? 

TOPICS
Browser , Code

Views

449

Translate

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 ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

I've tested using a Dreamweaver basic template, and that isn't working either-- stylesheet isn't being recognized. This seems like it might be an FTP problem but I don't know how to fix it. Help, please? 

Votes

Translate

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 ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

Please supply the URL of the remote server.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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 ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

Did you define your local site folder in DW before you began this project?  That's a critical first step.  Without it, DW cannot properly manage site assets for you.   Go to Site > New Site .   Enter the name and location of your site folder.  In my example, it is C:\MyTestSite\

 

CC-localsite.jpg

 

Files Panel.

CC-StarterPageAssets.jpg

 

Below shows the proper code linking the index page to an external stylesheet in my css folder.

<link href="css/bootstrap-4.2.1.css" rel="stylesheet">

 

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

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 ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

Yes! Everything is exactly where it should be. I think the issue I am running into is in the coding? Is this correct for linking a stylesheet? 

 

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

Votes

Translate

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 ,
Dec 14, 2019 Dec 14, 2019

Copy link to clipboard

Copied

If that is where the style sheet resides, then the link is correct.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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
LEGEND ,
Dec 15, 2019 Dec 15, 2019

Copy link to clipboard

Copied

By the way Ben some of us  'old guard' are very wise, unlike some who have somewhat become brain-washed.

Votes

Translate

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 ,
Dec 15, 2019 Dec 15, 2019

Copy link to clipboard

Copied

Glad you liked it.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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
LEGEND ,
Dec 15, 2019 Dec 15, 2019

Copy link to clipboard

Copied

We don't know if the link you supplied to your css stylesheet is correct or not unless we can see the page.

Try inserting your domain name infront of the path to the stylesheet and see what result you get, does the broswer find it?

 

www.yourDomainName.com/assets/css/main.css

 

In the past there have been instances where the server is not set up correctly to recognise css files, these instances however are few and far between, but it is one of a number of possibilities.

Votes

Translate

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 ,
Dec 15, 2019 Dec 15, 2019

Copy link to clipboard

Copied

LATEST

@xocorinthia,

Please post a link to your web site so we can give you better answers  instead of guesses.  A link saves time for everyone šŸ™‚ 

 

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

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