Looking to have a horizontally and vertically centered div inside a Section that has min-height: 100vh in Oxygen?
![](https://wpdevdesign.com/wp-content/uploads/2022/01/centered-div-min-height-oxygen-1024x591.png)
Here’s how.
Add a Section.
Align Items: center
Justify Content: center
Add a Div inside the Section having your desired content – say a Heading and Text component.
The key is to set min-height: inherit to the section’s inner wrap. This can be done either at Manage > Stylesheets or Manage > Selectors.
Go to Manage > Selectors and add a new selector like this:
#section-2-64 > .ct-section-inner-wrap
where section-2-64
is the ID of your Section.
If you are going to have multiple Sections with 100vh min-height, you might want to set up a class and use it instead of the ID.
Advanced > Min-height: Set it to none and type inherit
.
![](https://wpdevdesign.com/wp-content/uploads/2022/01/min-height-100vh-oxygen-editor-1024x579.png)
via Udoro.