Hi Guys,
I’m trying to overwrite the styles within the Dante style.css file. However I’m not sure I’m going about it the right way and wondered if you’d be able to advise me on the best way to do this…
Basically anything I want to override in the Dante Child theme I’ve to add a !important
which isn’t exactly best practice and I’d like to avoid this if possible.
For example:
When I inspect a <p>
tag on my page I notice this in the console:
body, p, #commentform label, .contact-form label {
font-size: 14px;
line-height: 22px;
}
Then when I go into my style.css file in the child theme I add the following: (notice the !important)
body, p, #commentform label, .contact-form label {
font-size: 16px !important;
line-height: 26px;
}
Am I doing this correctly? I’ve also noticed that the above CSS is output in a style tag within the page head. Could you explain this please?
Thanks as always for any help you can provide. I just want to make sure I’m doing everything by the book so that later on in the build it will be easy to make changes. Ideally I’d like to set the styles of the h1, h2, h3, p tags throughout the site.