Need help with centering buttons.

I am working on a piano program. I need help formatting a line of buttons so that the line is vertically and horizontally centered. If you have an answer, please let me know.

You are viewing a single comment. View All
Answered by eankeen (997) [earned 5 cycles]
View Answer
Geocube101 (529)

For horizontal alignment try setting <div id="buttons"> text-align property to center

  text-align: center;