Answer the question
In order to leave comments, you need to log in
How to style a content block?
I would like to ask experienced layout designers for advice: here is the structure of the site page prntscr.com/gg2v5g . The .main block has paragraphs with line-height=15 and line-height=22, there are headings with indents and 20px and 50px on different pages. Tell me, for such motley styling, you create nested classes inside .main for each page, or add another class to .main. Why such a question? I'm laying out the site and on the page "About the company" the paragraphs are gray with font-size=12px, line-height=16px, and on the posts page font-size=16px, font-size=22. In the search results, the product card is 250px high, and in the product catalog - 270px, otherwise the cards are identical. Tell me how to organize this moment. Thank you.
Answer the question
In order to leave comments, you need to log in
If I understand correctly .. Isn't it easier to do this:
<section class="main">
<div class="*">
</div>
</section>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question