After creating my circle using border radius it still observe it's the parent div I create the circle from thereby placing text I needed to be inside circle outside it. So how do I solve this?....... Pls someone help me out | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

After creating my circle using border radius it still observe it's the parent div I create the circle from thereby placing text I needed to be inside circle outside it. So how do I solve this?....... Pls someone help me out

1st Jul 2016, 4:38 PM
Cele Prince
Cele Prince - avatar
2 Antworten
+ 2
HTML: <div class="circle"> <p>text</p> </div> CSS: div.circle { height:50px; width:50px; background-color:green; border-radius:50%; display:inline-block; } div.circle p { vertical-align:center; text-align:center; color:white; }
2nd Jul 2016, 7:08 PM
Marlise U
Marlise U - avatar
0
wow it cool!! Thanks for your backup 👊👍
3rd Jul 2016, 9:11 AM
Cele Prince
Cele Prince - avatar