polaryeti Posted December 23, 2022 Share Posted December 23, 2022 https://demo.w3layouts.com/demos_new/template_demo/28-07-2021/biodata-liberty-demo_Free/2002651968/web/index.html This is the website that I am trying to build. This is my current navbar. This is what I want to build. My focus is on "Home" to "Contact". I want to put it at the center of the page like in the second one. My guess was to do display:flex justify-content: center. But it didn't work. Please guide me how to make it work? Here's the codepen. https://codepen.io/pelko/pen/WNKvdZz Quote Link to comment https://forums.phpfreaks.com/topic/315674-bring-navbar-at-center-css/ Share on other sites More sharing options...
Solution requinix Posted December 23, 2022 Solution Share Posted December 23, 2022 So I guess you figured it out? Quote Link to comment https://forums.phpfreaks.com/topic/315674-bring-navbar-at-center-css/#findComment-1603801 Share on other sites More sharing options...
polaryeti Posted December 23, 2022 Author Share Posted December 23, 2022 I did it badly. by giving margin-right:25%. Quote Link to comment https://forums.phpfreaks.com/topic/315674-bring-navbar-at-center-css/#findComment-1603803 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.