Column Names not quite centering

I have the correct columns names appearing, but have a hard time getting them to actually center on each puzzle piece.

Column names out of center
The CSS I created is here.

.column-number {
    width: 12%;
    margin-top: 12px;
    float: left;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    z-index: 10;

Open in new window

The single line I added to the template is:

    <div class="column-number" *ngFor="let i of columnNames" >{{ i }}</div>

Open in new window

newbiewebSr. Software EngineerAsked:
Who is Participating?
Leonidas DosasConnect With a Mentor Commented:
Try to set at CSS at  .column-number:
margin-left: 20%;

Open in new window

padding-left: 20%;

Open in new window

newbiewebSr. Software EngineerAuthor Commented:
Neither worked...

Margin left
Margin left
Padding left
Padding left
newbiewebSr. Software EngineerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.