javascript - Text in the shape unconventional -


please sample.

i want text "is best team?" within div , align central. nothing comes out of main div.

any idea might missing out please?

try this:

html:

<div class="badge"><div id='anotherdiv'>is best team?</div></div> 

css:

.badge {   height: 100px;   width: 100px;   display: table-cell;   text-align: center;   vertical-align: middle;   border-top-right-radius: 100%;   background: red; } #anotherdiv {   font-size:12px;   padding-right:20%;   padding-top:15%; } 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -