- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Does 'position: absolute' conflict with flexbox?
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>
Advertisements
To Continue Learning Please Login
Login with Google