0

What this does mean in CSS? Does it reset default margin and padding? body{}

body{ }class in CSS

10th Aug 2018, 11:00 AM
Farshad Assarpour
Farshad Assarpour - avatar
7 Answers
0
No, it does not reset anything. Maybe this will help. https://code.sololearn.com/W7v8Vxy352Gz/?ref=app
10th Aug 2018, 11:33 AM
Janning⭐
Janning⭐ - avatar
0
body{} you can write some styles in it Example; body{ background-color: "black" color: "white" }
10th Aug 2018, 11:39 AM
Sousou
Sousou - avatar
0
Learn CSS to understand it
10th Aug 2018, 11:40 AM
Sousou
Sousou - avatar
0
h1 { background-color: white; } <h1> Hi </h1>
10th Aug 2018, 1:18 PM
Basaam
Basaam - avatar
0
So you mean that it does nothing.
11th Aug 2018, 8:27 PM
Farshad Assarpour
Farshad Assarpour - avatar
0
i know CSS. and tnx for your example. but i wondered that it has general and global function. I appreciate for answers bros.
11th Aug 2018, 8:30 PM
Farshad Assarpour
Farshad Assarpour - avatar
0
It doesn't do nothing. It just doesn't act as a reset, as you were asking in your original post. Were you able to see the difference in the linked code?
11th Aug 2018, 9:21 PM
Janning⭐
Janning⭐ - avatar