Archived topic
Padding of element div seems wrong/not consistent
5 replies · Started by William on September 16, 2020
Hi there,
The way I want the contents of the element to look is contained within this link.
However, I notice other pages do not achieve this, with either the book title or the white button having extra padding to the right. Why is this the case and how can it be corrected so they all look like this for padding etc.?
Examples of wrong padding include:
this (book title too far to right)
this (white button too far to right)
this (white button too far to right)
Kind regards,
Will
Hi there,
Are you saying that this title should be to the left?
https://www.screencast.com/t/rQicWcwU
That's because you have this CSS added:
h2 {
text-align: center;
}
It doesn't look like the GP is at fault here so I'd recommend going through your CSS to make sure they aren't interfering.
You're bang on with your help, so thank you so much for that.
Is there a way to disclude such CSS for an element?
If you don't want the CSS to apply to a header element, you can try to be more specific like this:
.entry-content h2 {
text-align: center;
}
That's perfect thank you!
No problem :)