|
|
|
|
|
by smt88
4102 days ago
|
|
No tutorial needed. 1. Create your HTML using only semantics. If you're tempting to create a class called, say, "column" or "left-container", stop yourself. If you have multiple items that will be presented the same way, give them the same class. For a shopping site, for example, a class might be "product". 2. Use a CSS preprocessor to inherit non-semantic classes from your framework of choice into the classes you created in step 1. You might use the framework's classes as they are or modify them a little. |
|
This may work for simple cases. But what about stuff like the Bootstrap components, which consist of many HTML-elements?