-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Clicking on html tags without relevant CSS selectors should allow you to add styles #1674
Comments
Comment by KraigWalker A good idea, but one of the grey areas is "what file do you add the styles in?" - it would be easy if everyone used a stylesheet for every corresponding html file, but of course that's not the case, and adding style elements in your markup doesn't really make for the most maintainable of code. You can do stuff like this in Blend, right clicking a tag, id or class and adding a CSS Rule, but Blend is a visually cluttered tool, and it dictates where the code goes - usually in your html, because guessing a stylesheet is too unpredictable. The only ideal option is to link stylesheets and HTML files together, but brackets is a code editor, not an IDE, and it wouldn't really be right to dictate someone's project layout/ coding style. Buuut... If perhaps you right-clicked the tag/id/class/etc and maybe had to select an appropriate file in your working set, maybe then you could add styles to your elements without interruption. The next grey area to think about is whether you fill in that style like you would in typical inline editing, or get taken to the .css file in question in the main view... |
Comment by peterflynn
|
Comment by peterflynn Closing this bug since user story #599 is already tracking it. |
Issue by srmor
Wednesday Sep 26, 2012 at 01:44 GMT
Originally opened as adobe/brackets#1718
Currently you can only show the CSS styles inline in the HTML files if there are styles associated with it. You should be able to click any tag and if there are no relevant styles it should allow you to add some right then and there instead of doing nothing.
The text was updated successfully, but these errors were encountered: