applied hook css for horizontal display