how to make a text in center with background color in css

Solutions on MaxInterview for how to make a text in center with background color in css by the best coders in the world

showing results for - "how to make a text in center with background color in css"
Sophie
30 Apr 2016
1 <div style="text-align: center;background-color: rgb(150, 161, 255); display:table; margin:auto;  " id="clock">
2            asd
3    </div>