Skip to main content
Participant
December 15, 2019
Question

CSS Stylesheets not being recognized?

  • December 15, 2019
  • 3 replies
  • 595 views

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? 

This topic has been closed for replies.

3 replies

Nancy OShea
Community Expert
Community Expert
December 15, 2019

@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
Nancy OShea
Community Expert
Community Expert
December 15, 2019

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\

 

 

Files Panel.

 

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
Participant
December 15, 2019

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"/>

BenPleysier
Community Expert
Community Expert
December 15, 2019

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

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participant
December 15, 2019

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? 

BenPleysier
Community Expert
Community Expert
December 15, 2019

Please supply the URL of the remote server.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!