+ 4

How can I put text in the middle of circle!?

10th May 2016, 1:35 PM
Mohamad Zakwan Almouselli
Mohamad Zakwan Almouselli - avatar
8 Respostas
+ 7
There are tricks for that, if you want a fixed dimension circle that's easy, if you want a responsive adaptive circle you need to do this: <input disabled value="text goes here"> input{ height: 15vmin;/*look viewports online*/ width: 15vmin; text-align: center; background: blue; /*so you can see it*/ color: white; border-radius:50%; border: 0; } And there you have it 😌 P.S. sorry if my English is not really good, that's not my native language
17th Jun 2016, 1:07 PM
Alessio “AleBian” Biancone
Alessio “AleBian” Biancone - avatar
+ 1
make a div off square give it border radius of 50 or 100 px and set text-align to center
16th Jun 2016, 7:27 PM
Arsalan MuhammadHussain
Arsalan MuhammadHussain - avatar
0
But it only a single line of text which may not be complete can be written on it and only placed at the center only...... Pls help me out I want to write text in all angles of the circle.
1st Jul 2016, 5:21 PM
Cele Prince
Cele Prince - avatar
0
Thanks you guys are great 👍
1st Jul 2016, 5:22 PM
Cele Prince
Cele Prince - avatar
- 1
using text align:center
6th Jul 2016, 3:58 AM
JERIN GEORGE
JERIN GEORGE - avatar
- 2
yes, you can by using the HTML code
17th Jun 2016, 3:19 AM
UMAR MUHAMMAD ALIYU
UMAR MUHAMMAD ALIYU - avatar
- 2
text-align:centre
22nd Jun 2016, 11:40 AM
Promitosh Talukder
Promitosh Talukder - avatar
- 2
use text-align:center and padding
27th Jun 2016, 9:39 PM
Matheus Prado
Matheus Prado - avatar