Highlighted

CSS Stylesheets not being recognized?

New Here ,
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

219

Likes

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

CSS Stylesheets not being recognized?

New Here ,
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

220

Likes

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
Dec 14, 2019 0
New Here ,
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? 

Likes

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
Reply
Loading...
Dec 14, 2019 0
Adobe Community Professional ,
Dec 14, 2019

Copy link to clipboard

Copied

Please supply the URL of the remote server.


Ben

Likes

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
Reply
Loading...
Dec 14, 2019 0
Adobe Community Professional ,
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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Dec 14, 2019 0
New Here ,
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"/>

Likes

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
Reply
Loading...
Dec 14, 2019 0
Adobe Community Professional ,
Dec 14, 2019

Copy link to clipboard

Copied

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


Ben

Likes

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
Reply
Loading...
Dec 14, 2019 0
LEGEND ,
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.

Likes

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
Reply
Loading...
Dec 15, 2019 1
LEGEND ,
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.

Likes

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
Reply
Loading...
Dec 15, 2019 0
Adobe Community Professional ,
Dec 15, 2019

Copy link to clipboard

Copied

Glad you liked it.


Ben

Likes

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
Reply
Loading...
Dec 15, 2019 1
Adobe Community Professional ,
Dec 15, 2019

Copy link to clipboard

Copied

@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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Dec 15, 2019 1