+ 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
5 Antworten
+ 11
you can define margin in one line going top, right, bottom and left. In your case margin: 0px 50px 0px 50px;
+ 2
or just margin:0px 50px;
+ 1
This seems fine. Were you concerned about something in particular?
+ 1
or just
margin: 0 50px;
?
lol
+ 1
you are on the right track