LESS: Headings font-size scale

/* WEBSITE BASE FONT-SIZE */ @font-size-base: 1em; /* HEADINGS */ h1 { font-size: @font-size-base * 3.15; } h2 { font-size: @font-size-base * 2.5; } h3 { font-size: @font-size-base * 2; } h4 { font-size: @font-size-base * 1.5; } h5 { font-size: @font-size-base * 1; } h6 { font-size: @font-size-base * 0.8; }
Here is how I manage the font-size using LESS.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.