Questions tagged [css]
Cascading Style Sheets (CSS) is a language for specifying the layout and presentation in general of markup such as HTML and XML.
280 questions
5 votes
2 answers
1k views
Performance consideration for cascading style sheet implementation
I have the plan for an UI component hierarchy. Each UI component contains zero or more children UI components, and each UI component may set an optional theme. A theme is responsible for skinning a ...
1 vote
1 answer
561 views
Using JS and CSS parent selector to replace media queries: is it a good practice?
I really don't like media queries in CSS - they have limitations, and on top of that they make the code a lot more confusing. In addition, the restrictions are so strong that when using CSS ...
1 vote
2 answers
110 views
Crossbrowser testing FrontEnd apps in 2022
So nowadays, creating js & css that works the same across different browsers is less of an issue as to what it was a few years back. So let's say I have this Vue app that - Has CSS reset Include @...
0 votes
1 answer
307 views
Should I use SCSS mixins as shortcuts for default CSS syntax?
This question is mainly about readability and understanding of the code. Im am also in the process of creating a SCSS framework like Compass and Bourbon. I struggle to write SCSS because I like to see ...
1 vote
1 answer
388 views
Advantages and disadvantages of including JS/CSS inside the HTML?
What are the advantages and disadvantages of including JS/CSS inside the HTML instead of separated files? Specifically concerned about performance issues, for example, if the CSS and JS are small and ...
-3 votes
1 answer
119 views
doesn't inline-styling represent separation of concerns concept the best way if you think that you're separating the HTML element from other elements?
I know that Inline CSS styling gets so much hate from many developers, and I understand that some of this hate is justified by the following facts: Inline styles increase page size as they don't get ...
-3 votes
1 answer
5k views
How do I set a darker background color on hover *without knowing the original color*?
I've tried everything related to filter and backdrop-filter, but nothing seems to work. I've searched online but not found a single article addressing this (which is odd). I simply want to set the ...
-3 votes
1 answer
80 views
How would you architect a simple cascading style sheet object?
How would you architect a simple cascading stylesheet like inheritance object? For example, I have Apple that extends Fruit. class Fruit { constructor() { this.total = 10; } } ...