+ 2

How to display svg element in center of web page?

If I want some shape on web page at center like line, square, rectangle, triangles?

11th Nov 2019, 6:30 AM
Ananta Khare
Ananta Khare - avatar
2 odpowiedzi
+ 6
Add  display: block  to it and then  margin: auto  will work as expected.
11th Nov 2019, 6:41 AM
Baraa AB
Baraa AB - avatar
+ 4
CSS Pro Tips: Centering Elements by Domino https://www.sololearn.com/post/37760/?ref=app
11th Nov 2019, 12:56 PM
Gordon
Gordon - avatar