+ 2

Whats the alternate version/best practice of this simple CSS code?

Since I'm new to Web dev, I somehow managed to make what I wanted in this code but dont know whether its a good practice or there is any alt version (efficient way). Help is highly appreciated! https://code.sololearn.com/WUFLWyf2t1FB/?ref=app

9th Sep 2018, 7:24 PM
That Guy
That Guy - avatar
5 Antworten
+ 11
you can define margin in one line going top, right, bottom and left. In your case margin: 0px 50px 0px 50px;
9th Sep 2018, 8:10 PM
Vukan
Vukan - avatar
+ 2
or just margin:0px 50px;
9th Sep 2018, 11:05 PM
Ognjen Zivkovic
Ognjen Zivkovic - avatar
+ 1
This seems fine. Were you concerned about something in particular?
9th Sep 2018, 8:09 PM
Janning⭐
Janning⭐ - avatar
+ 1
or just margin: 0 50px; ? lol
10th Sep 2018, 12:24 AM
Janning⭐
Janning⭐ - avatar
+ 1
you are on the right track
10th Sep 2018, 6:28 AM
Tass Jomo