Tagged Questions
7
votes
1answer
362 views
Why doesn't CSS natively support variables and hierarchy?
I am new to UI development, but I feel very uncomfortable with how CSS works.
My use case is that I wanted to apply some specific styles inside a particular div on a page.
CSS attempt:
div.class1 ...
23
votes
8answers
5k views
Should I write HTML or CSS first?
There are a lot of analogies for HTML/CSS development; which can be a bit confuse for a beginner.
HTML = foundations/house
CSS = walls/blueprint/wallpaper
Is there any best practice here? ...
7
votes
4answers
280 views
css - use universal '*' selector vs. html or body selector?
Applying styles to the body tag will be applied to the whole page, so
body { font-family: Verdana }
will be applied to the whole page. This could also be done with
* {font-family: Verdana}
...
16
votes
7answers
3k views
Practical considerations for HTML / CSS naming conventions (syntax) [closed]
Question: what are the practical considerations for the syntax in class and id values?
Note that I'm not asking about the semantics, i.e. the actual words that are being used, as for example ...