How to placed the circle left of the h1 tag and write 18 inside the circle? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to placed the circle left of the h1 tag and write 18 inside the circle?

https://code.sololearn.com/WA9A18A7a3a1

11th Jul 2021, 11:22 AM
Abhishek Kumar
Abhishek Kumar - avatar
3 Réponses
+ 4
For text, Add 18 between the div tags for circle . Then use the following properties to center it(if you want to). display:flex; align-items:center; justify-content:center; ________________________ For circle left of h1 tag i need to know if circle tag should be left of h1 tag and should be outside of it as well ? Can one put circle tag inside h1 tag ?
11th Jul 2021, 11:43 AM
Abhay
Abhay - avatar
+ 2
11th Jul 2021, 1:38 PM
JaScript
JaScript - avatar
0
First, you have an error while copying, there is a closing tag in the 10th line </u> Well, move the <div> above h1 and write #circle{ float: left; display: flex; align-items: center; justify-content: center; }
11th Jul 2021, 12:45 PM
Solo
Solo - avatar