#headingLayout { width: 100%; display: flex; position: relative; align-items: center; justify-content: center; } #closeIcon { right: 0; position: absolute; bottom: 2.1em; } #exampleContainer { padding: 0; margin: 0; }