How to add headings inside a div?
Posted: Wed Aug 18, 2021 6:34 pm
I want create a page structure about like this:
So far, I can make it only while editting the page in TMCE4 HTML mode. Is there any easier way to do it directly in Edit mode?
EDIT:
I have installed the CKEditor and I see, this is very close to what I want. It is just that the logic of creation of such nested structure is slightly upside-down. But works almost perfectly.
Code: Select all
<div class="black">
<h1 class="white">White heading</h1>
<h1 class="red">Red heading</h1>
<p class="white">White paragraph text</p>
</div>
<p>Another paragraph in "black on white"</p>
<div class="black">
<h1 class="white">White heading</h1>
<h1 class="red">Red heading</h1>
<p class="white">White paragraph text</p>
</div>
EDIT:
I have installed the CKEditor and I see, this is very close to what I want. It is just that the logic of creation of such nested structure is slightly upside-down. But works almost perfectly.