I have this for my H1 custom css
h1 {
display: inline!important;
border-bottom: 3px solid #34e5eb;
}
And on the entire site it looks fine, where the bottom border only extends as long as the title is. Perfect.
But when I add a Heading block to a grid cell in Toolset, that bottom border goes the width of the cell rather than stop at the length of the title, so it seems it is not respecting the inline css part.
It looks like the H1 class is tb-heading but when I add that to custom css it still doesn't respect the inline css.
How do I make it respect inline for the bottom border as per my H1 css for the entire site?
Thanks in advance.
Hi,
Thank you for contacting us and I'd be happy to assist.
Your observation is correct and by default, any element that is directly placed in the grid cell is assigned the full 100% width.
To make an exception for the h1 tag, so that it only takes up its natural width, you can include the following custom CSS code:
.tb-grid-column>h1 {
width: auto !important;
}
I hope this helps and please let me know if you need further assistance.
regards,
Waqar