+ 9

How to make a js square?

3rd Nov 2018, 9:48 AM
Calimari
Calimari - avatar
4 Answers
+ 8
1. Using div. 2. Play with margin. 3. Add border. 4. Add background-color if you want
3rd Nov 2018, 10:16 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 8
Use CSS and not JS to make square on webpage.
3rd Nov 2018, 10:52 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
rect(20,40,30,40);
4th Nov 2018, 2:32 AM
SarahDiamondFox
SarahDiamondFox - avatar