Skip to main content
Participant
Dec 15, 2019 12:17 AM UTC
Question

CSS Stylesheets not being recognized?

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 is closed to new replies. Start a new post to keep the conversation going.

9 replies

Nancy OShea
Community Expert
Community Expert
Dec 15, 2019 8:09 PM UTC

@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 🙂 

 

 

Translate
Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
Dec 15, 2019 1:17 AM UTC

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

 

 

Translate
Nancy O'Shea— Product User & Community Expert
Participant
Dec 15, 2019 1:52 AM UTC

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

Translate
BenPleysier
Community Expert
Community Expert
Dec 15, 2019 3:19 AM UTC

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

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participant
Dec 15, 2019 12:29 AM UTC

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? 

Translate
BenPleysier
Community Expert
Community Expert
Dec 15, 2019 12:59 AM UTC

Please supply the URL of the remote server.

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