@cisneConCorbata
Posted
Hi! CSS usually takes me a lot of lines as well, but there are ways to make it a little shorter. For starters, by checking your code, I can see you could save a lot of space by using this format to import fonts
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800&display=swap');
and most properties have shorthands, ie, the shorthand for font is:
font: font-style font-variant font-weight font-size/line-height font-family;
just replace the values with what you need. That way, you don't use a line for each property, and most properties work this way, you can consult them at W3 schools
Marked as helpful
@kayyrbeks
Posted
@cisneConCorbata I glad to hear what I'm not alone who write a lot of line css code. Thanks for useful advice and checking my code!