Archived topic
Wrap H1 and meta in background color
1 reply · Started by Sanu Kumar on May 18, 2021
Viewing posts 1–2 of 2
How to wrap H1 and meta in background colour like this website is using: https://www.matthewwoodward.co.uk/blogging/reviews/a2-hosting/
Screenshot: https://ibb.co/7YK5Jbz
Hi there,
you can use some CSS on your current layout:
/* Fill entry-header */
.single .entry-header {
margin-left: -56px;
margin-right: -56px;
background-color: #ccc;
padding: 20px 56px;
}
/* Adjust for mobile padding */
@media(max-width: 768px) {
.single .entry-header {
margin-left: -18px;
margin-right: -18px;
padding: 20px 18px;
}
}
This archived topic is closed to new replies.
