.chartBox { text-align: center; top: 12px; position: relative; } .chartBox h3 { margin: 0; color: #5B5B98; font-weight: 500; font-size: 13px; position: relative; bottom: 7px; } .chartBox p { position: absolute; margin: 0; left: 0; right: 0; bottom: 28px; font-size: 12px; font-weight: 500; color: #2DB6F5; } @media only screen and (max-width: 767px) { .chartBox h3 { font-size: 10px; } }