Does 'position: absolute' conflict with flexbox?

FlexJavascriptWeb DevelopmentFront End Scripts

Absolutely positioning will not conflict with flex containers. You need to set the parent width and values as well:

.parent {
   display: flex;
   justify-content: center;
   position: absolute;
   width:100%
}

The following is the HTML:

<div class = "parent">
   <div class = "child">text</div>
</div>
raja
Published on 10-Apr-2018 12:03:35
Advertisements