
The vertical-align property is used to vertically center inline elements.

However, there are several ways of vertical centering, and each is easy to use.
HTML has theThis way you can still use the UI to set the flex without writing CSS. In this section, well learn how to center text in CSS horizontally and vertically with Flexbox. Alternatively if you don't want the extra inner markup, you can just use a div instead of a section, then just change the html tag to and manually wrap your inner content your own way. If you do need the CSS to be applied to the itself, in order to have the 'ct-section-inner-wrap' inner div act as the flex item (and not the elements inside), then you can apply using custom CSS as you have in your second video.īut it has to work this way. If it didn't do this, it wouldn't work for aligning content.
When you're using the flex controls in Oxygen on a section, it necessarily makes this ct-section-inner-wrap div the flex container, not the itself, this is in order to make the content inside become the flex-items. Display: Flex flex-direction, row, By default, flex-direction is set to row which means all the children elements are laid out next to each other. In Bootstrap 4, if you want to vertically align aIn your examples when you hand code, you're missing out that important markup, that's why you're getting different results. Vertical Alignment Utilities for controlling the vertical alignment of an inline or table-cell box.

From what I can see, this is working as expected.Ī section is a pre-made component, which is made up of a where the inner divs have the class of 'ct-section-inner-wrap' and are used to wrap the content inside (otherwise everything would stretch to the edge of the viewport)
