+ 3

How to make a circle I used this code for it html:<div class="Moon"></div> CSS: .Moon{ border-radius="50%"} It's not working

How will I make the circle not working

12th May 2023, 1:18 PM
ayman mohammad
ayman mohammad - avatar
14 ответов
+ 11
A DIV on its own, is just an empty container, it does not take up any space. To make it stand out, specify size (with height and width properties), and give it a different background-color. Pay attention to correct syntax: in CSS you have to use colon : and semicolon ; .Moon { width: 100px; height: 100px; background-color: blue; border-radius: 50%; }
12th May 2023, 1:33 PM
Tibor Santa
Tibor Santa - avatar
+ 9
https://code.sololearn.com/WB9mr64R8323/?ref=app Use this if you want to create moon 🌒 or even circle
14th May 2023, 9:04 AM
Kim 반테
Kim 반테 - avatar
+ 4
Use svg or canvas
12th May 2023, 1:32 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 4
Hasnain [ACTIVE CHALLENGER] Canvas is used for vector art right
12th May 2023, 2:02 PM
ayman mohammad
ayman mohammad - avatar
+ 4
Forgot the background colour instead used border colour 😅
12th May 2023, 2:10 PM
ayman mohammad
ayman mohammad - avatar
+ 3
it does not give you circle because you have not add value of height and width ou have to add height and width value. and the value of your height must be same with value of your width. and you have to add border. for example .moon{ height:50px; width:50px; border: 2px solid blue; border-radius:50%; }
14th May 2023, 9:18 AM
ᎧᎮ ᭄𝓗𝓪𝓬𝓴𝓮𝓻꧂
ᎧᎮ ᭄𝓗𝓪𝓬𝓴𝓮𝓻꧂ - avatar
+ 1
Oh thanks Tibor Santa
12th May 2023, 2:01 PM
ayman mohammad
ayman mohammad - avatar
+ 1
It's working
12th May 2023, 2:21 PM
ayman mohammad
ayman mohammad - avatar
0
Is something wrong with it it's correct right
12th May 2023, 1:18 PM
ayman mohammad
ayman mohammad - avatar
0
Tibor Santa It's not working
12th May 2023, 2:09 PM
ayman mohammad
ayman mohammad - avatar
0
Oh wait
12th May 2023, 2:09 PM
ayman mohammad
ayman mohammad - avatar
0
Mirielle Oh I see
12th May 2023, 3:16 PM
ayman mohammad
ayman mohammad - avatar
0
Well you can easy apply ever form in 2d with your own svg as example i will create a codebit for you ... Brb
13th May 2023, 8:26 PM
S3R43o3
S3R43o3 - avatar
0
https://code.sololearn.com/WiCa231HV7zY/?ref=app So iam back i explain in the comments on the html file. Hope that help you, happy coding ✌️
13th May 2023, 8:40 PM
S3R43o3
S3R43o3 - avatar