Need help with centering buttons.
ryaalbr (6)

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 (614) [earned 5 cycles]
View Answer
Geocube101 (258)

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

#buttons
{
  text-align: center;
}