Bart Posted June 4, 2019 Share Posted June 4, 2019 I used the guide from this link https://www.w3schools.com/howto/howto_js_tabs.aspI would like to center the buttons. I currently have 22 buttons. The second line is arranged to the left. I want them to be in the middle. I tried several ways but unfortunately to no avail. Thank you in advance for your help. Link to comment Share on other sites More sharing options...
Funce Posted June 4, 2019 Share Posted June 4, 2019 If you add text-align: center; to your tab class and remove the float: left from tab button, then you should get the output you want. Link to comment Share on other sites More sharing options...
Bart Posted June 5, 2019 Author Share Posted June 5, 2019 It works. Thank you ! 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