-
AuthorPosts
-
February 23, 2021 at 10:28 pm #1283259
Hi,
On the linked page we have a text block (example 1) with H6 text. In the Advanced Styling we set up the H6 with text color, font size and line height. Additionally we added the following to get the background color and opacity:
h6 { background: rgba(14, 76, 117, 0.3) !important; }
h6 { margin-bottom: .60em; !important; }However, we would like to have spacing of coloration between the lines/rows and not like this when it looks like one big background of color.
I know it can be done by backspacing every paragraph like we did it in example 2 but it doesn’t look so good because the spacing is only between paragraphs.
In short, we would like to have every row with its own background color and spacing between rows without any background color.
Anything we can add to quick CSS?
Thanks in advance
February 24, 2021 at 6:03 pm #1283468Hey santinimedia,
Well, the heading should not have so much text. Normally, one uses p tags, div, article, or section. There you can add a class and add a background that you need.
Could you please attach a mockup of what you’re trying to achieve?
Best regards,
VictoriaFebruary 24, 2021 at 6:55 pm #1283503Hi Victoria, thank you for the quick answer. What we are trying to achieve is the example 3 on the linked page. We’ve put the following in the quick css
.my-highlighted-text { background: rgba(14, 76, 117, 0.3) !important; } and added <span class=”my-highlighted-text”> to the text in question.
Yes, this solves our problem and we can resolve it in this way but… as the client would write the blog posts and he would use this functionality in the blog posts we wouldn’t want him to mess up something with the span class and insertions in the text editor. We think it would be more user-friendly if we could achieve the example 3 with customizing/customized headings.
In that way, the client could just mark the text in the text block with (for example) H6 and that would be it. If he starts adding span class well… he would most certainly f… it up from time to time.
So we need the way to create example 3 but with headings in text block.
I hope I was clear :)
February 27, 2021 at 3:02 pm #1284116Hi santinimedia,
Well, your client can just add a custom css class to the text block and the css will be applied to the text in it and there will be no need to override the heading tags.
And so the css can be:
.my-highlighted-text .avia_textblock p { background: rgba(14, 76, 117, 0.3); }
Best regards,
VictoriaMarch 1, 2021 at 2:47 pm #1284432Ok Victoria, thank you.
March 1, 2021 at 3:24 pm #1284443Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonMarch 3, 2021 at 9:09 pm #1285153You can close thanks.
March 4, 2021 at 3:27 am #1285199Hi santinimedia,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Highlighted heading text – with spacing without color between rows/lines’ is closed to new replies.