CSS inject from a CSS file referenced in a <link> tag #107
Unanswered
OrhanOctavian
asked this question in
Help / Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is it possible to inject CSS code from CSS files that are linked in a HTML file through
<link>
tags (example:<link rel='stylesheet' href='css/main.css'>
)?While adding a
<style>
tag in the html file works fine and instantly applies the CSS changes to the preview browser window, I am wondering if I could achieve the same with a css file that is linked using a<link>
tag. This would be useful because normally the css files are stored separately from the html file, to avoid the clutter of having<style>
tags in the html files.Manually saving the CSS file is effectively updating the preview, but CSS injection would be more useful, particularly when designing the style of elements ( for example using the color wheel to live preview the changes in the browser, contrary to testing one color at a time by hitting save in between).
Beta Was this translation helpful? Give feedback.
All reactions