-
AuthorPosts
-
January 26, 2016 at 2:04 am #764467
Hi guys,
I Can’t seem to change H1, H2 etc line height in Customizer with CSS. Although it works when I make the change in my Browser Inspector, once I paste the CSS across is stops working.
This is the CSS I have:
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
line-height: 50px !important;
}Any ideas?
Thanks!January 26, 2016 at 2:26 am #764489Hello Chris,
Line height will depend on the font size? Would you mind clarifying why do you want to change it’s line height? What you want to achieve so we can check and help you better? By default headings have default margins. You may add class man to reset this margins to zero and then it’s line height will decrease.
(m) – margin (a) – all (n) – none.
Please also share your site URL.Always,
XJanuary 26, 2016 at 2:31 am #764500Hi guys,
Thanks for the reply!
Here is the dev URL: http://dev.hatfield.co.za.www54.jnb2.host-h.net/
My client has requested that the line height (50px) that I have manually added to the introduction paragraph (below the rotating icons) be the same throughout the website.
AKA: 50px default line height on all Headings from here on out.
Is this possible with the Customizer or will I have to add manually every time?
January 26, 2016 at 3:37 am #764574Hi Chris,
Your code is not working because there is a missing close curly bracket in your custom > css
Please change the code that reads
@media (max-width: 600px) { .x-brand { width: 150px; }
with this
@media (max-width: 600px) { .x-brand { width: 150px; } }
Notice I added an additional bracket at the end.
After adding that your code to adjust the line height should work
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { line-height: 50px !important; }
Hope that helps.
January 26, 2016 at 4:08 am #764623You sir, are fantastic!
Thank you, I was JUST starting to wonder why my CSS wasn’t working anymore.
I appreciate the help very much 🙂
Have an awesome day!January 26, 2016 at 5:24 am #764718You are most welcome. ☺
-
AuthorPosts