LeonLatex Posted July 24, 2023 Share Posted July 24, 2023 (edited) I can't figure this puzzle out. I have tried most things throughout the night, but I have not set up this DIV as either a FLEX CONTAINER or a GRID CONTAINER. So, I tried to do that too, but it wasn't working. Do I have to place it in some special place in the CSS code? So, what will work here to align the text and content in this menu bar in center position? Everything is on one line too. I would appreciate it if someone could show me where to put it? <body class="body"> <div class="menu_div">Menu items</div> div.menu_div { margin-top: 10px; background-color: #ffffff; position: fixed; box-sizing: border-box; overflow: hidden; height: 35px; width: 100%; top: 83px; left: 0px; border-bottom: thin solid #033333; } Edited July 24, 2023 by LeonLatex Quote Link to comment https://forums.phpfreaks.com/topic/317115-cant-center-text-it%E2%80%99s-neither-a-flex-container-nor-a-grid-container/ Share on other sites More sharing options...
requinix Posted July 24, 2023 Share Posted July 24, 2023 Where's the rest of it? The rest of the HTML and the rest of the CSS? Quote Link to comment https://forums.phpfreaks.com/topic/317115-cant-center-text-it%E2%80%99s-neither-a-flex-container-nor-a-grid-container/#findComment-1610691 Share on other sites More sharing options...
LeonLatex Posted July 24, 2023 Author Share Posted July 24, 2023 Oh crap! Got to learn to check my spelling🙄 Quote Link to comment https://forums.phpfreaks.com/topic/317115-cant-center-text-it%E2%80%99s-neither-a-flex-container-nor-a-grid-container/#findComment-1610714 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.