Search code examples
htmlcssmacosadobe-brackets

Brackets IDE: fix it?


I have some problems with Brackets redactor. When I use sublime, save html & css code, then open it through chrome by clicking on index.html, it works good: http://rghost.ru/7NCLNdtBJ But when i use Live Preview in brackets, brackets open my chrome and show this:http://rghost.ru/6D25SVNFC

What's the problem, and how i can fix it?


Solution

  • If you have a css folder in your root directory, you can link to it like this:

    /css/styles.css
    

    More info:

    • Starting with "/" returns to the root directory and starts there
    • Starting with "../" moves one directory backwards and starts there
    • Starting with "../../" moves two directories backwards and starts there (and so on...)
    • To move forward, just start with the first subdirectory and keep moving forward

    Copied from: http://css-tricks.com/quick-reminder-about-file-paths/