File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
# CSS Coding Practice
2
2
3
- ## Q. How to draw a circle inside Square using single DIV in css?
3
+ ## Q. Draw a circle inside square using single DIV in css?
4
+
5
+ ** Example:**
6
+
7
+ <p align =" center " >
8
+ <img src =" assets/images/circle-inside-square.png " alt =" circle inside square " width =" 250px " />
9
+ </p >
10
+
11
+ <details ><summary ><b >Answer</b ></summary >
4
12
5
13
``` html
6
14
<!DOCTYPE html>
26
34
width : 200px ;
27
35
height : 200px ;
28
36
border-radius : 50% ;
29
- background-color : #eee ;
37
+ background-color : red ;
30
38
}
31
39
</style >
32
40
<body >
35
43
</html >
36
44
```
37
45
38
- ** Live Demo** : [ Circle inside Square] ( https://codepen.io/learning-zone/pen/zYwKbZo )
46
+ ** ⚝ ; [ Try this example on CodeSandbox] ( https://codesandbox.io/s/css-circle-inside-square-xqfsuj?file=/index.html ) **
47
+
48
+ </details >
39
49
40
50
<div align =" right " >
41
51
<b><a href="#">↥ back to top</a></b>
You can’t perform that action at this time.
0 commit comments