Archived topic
Heading outside of a DIV
8 replies · Started by Rostyslav on June 25, 2022
Hello,
Is putting a heading not inside in a div a bad practice?
Can I have this structure https://ibb.co/d6pVfry instead of this: https://ibb.co/3y3pkTn ?
My main doubt is when the heading is not inside a container div is a bad practice using generateblocks?
Option1:
CONTAINER
CONTAINER
HEADING <h2>
CONTAINER
CONTAINER
Option2:
CONTAINER
CONTAINER
CONTAINER
---------HEADING <h2>
CONTAINER
Thanks!
Hi there,
I would say it depends...
Can you link me to the page in question?
Let me know :)
Yes
Should I create a specific container just for that <H2>? I just want a full width different background color for that heading.
Hi there,
with a Full Width page, then yes you will need to add the Headline Block inside a Container Block.
Hi David,
I this estructure correct? https://imgbb.com/d6pVfry
or its better practice like this: https://ibb.co/PWVzwfV?
Are you using a Full Width page ?
If yes then use this one: https://ibb.co/PWVzwfV
If No then use either one.
Yes,
I am using a Full With page with inside container of 1200px.
So, how can I put a custom full width background color for a H2 heading using this structure https://ibb.co/PWVzwfV?
Hi Rostyslav,
Since you have and inside container of 1200px, you can place the H2 within a Container Block itself outside of the Container Block you have, and the set the Container and the Inner Container to Full Width.
Example: https://share.getcloudapp.com/p9uOAOg1
Otherwise, if you follow the current structure you have, you can just use the WP width setting, and set it to full width as such: https://share.getcloudapp.com/ApuXzXK5
Either should work.
Hope this clarifies!