.color-div { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; text-align: center; vertical-align: middle; line-height: 22px; }