I got it to work by using min-width while changing the display for the class from table to grid. I don't know why specifying a min-width will shrink it more than specifying a width though.