-
Notifications
You must be signed in to change notification settings - Fork 7.6k
CSS style wont load on .html #12217
Comments
If I'm understanding your questions correctly, and your directory looks like this: project folder │ home.html │ ├───css │ style.css │ └───HTML contact.html Remember: folder and directory mean the same thing
It searches In its own directory for the a folder called
Here is how you write the path for those instructions:
The two periods (also called full-stops) at the beginning tell it to go up a directory, the This isn't a problem with adobe brackets, it's working with "relative paths" which are used in almost every operating system's file system. If what I said doesn't make sense, Adobe (despite your issue raising nature) took mercy on you providing this article on understanding both relative and absolute URLs, and their relationship. Did that help you? |
And the issue has been resolved! Thank you very much. |
@tjgerot Thank you for the help. |
@tjgerot Thank you so much. You are my hero. |
I'm having a similar problem, except in my layout, I don't have my main html (I called it index.html) in a folder separate from the main folder containing both the CSS folder and index.html. Adding the full stops didn't help; the live preview still doesn't load the CSS at all. Any suggestions? Edit: I thought it was important to add that the external stylesheet does work on my repository on GitHub. |
Hello.
I've downloaded Brackets editor to do some html coding. I'm very inexperienced.
Brackets is an amazing tool, and i love it's live preview. But as you can guess, im having trouble.
So fare i've managed to create a project folder where my home page is located: home.html. I've linked its style to my style.css file which is in a subfolder CSS, the layout is working without trouble.
But the style from the css is not working on the contact.html file. I've copied exact same code from my home.html page, but still no luck.
NOTE: The contact.html file is located in another subfolder called HTML, but why should that have any effect? What i dont understand is that i have the right direktori in my style href link: css/style.css
I simply can't get it to work. I hope you can help.
The text was updated successfully, but these errors were encountered: