pinwheel Posted March 2, 2016 Share Posted March 2, 2016 (edited) Hello everyone, I tried to center the Top Horizontal Menu, I did follow a few others on google and sadly the result wasn't what I was looking for. Previously I did the following, only problem is the text within the sub-menu's also end up centering and it looks funny. I would like to keep them left when they open. Any help would be much appreciated. Go to /themes/default-bootstrap/css/modules/blocktopmenu/css/superfish-modified.css Change the .sf-menu From:.sf-menu { position: relative; padding: 0; width: 100%; border-bottom: 3px solid #e9e9e9; background: #f6f6f6; } To:.sf-menu { text-align: center; padding: 0; width: 100%; border-bottom: 3px solid #e9e9e9; background: #f6f6f6; } And under .sf-menu > li, delete float: left; and add in display:inline-block; Edited March 2, 2016 by pinwheel (see edit history) Link to comment Share on other sites More sharing options...
polosat Posted March 2, 2016 Share Posted March 2, 2016 Try to add this code. Hopefully this is what you are looking for. .sf-menu ul { text-align: left; } 1 Link to comment Share on other sites More sharing options...
pinwheel Posted March 2, 2016 Author Share Posted March 2, 2016 Thank you for your reply. I found a website which allowed me to customize everything. I got the website looking just how I wanted. Thank you. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now