0

Help me please!)) How is delete white space around page?

https://code.sololearn.com/WFJ8N3R403nk/?ref=app

30th Mar 2020, 10:14 PM
Andrew Plokhikh
Andrew Plokhikh - avatar
5 Réponses
+ 2
body { margin: 0; } and your first line should be * { box-sizing : border-box; } the {} is needed even for * https://code.sololearn.com/WWoJOyJJ3P5w/?ref=app I see that you are on the right path, here are some materials for you, regarding responsive design: https://code.sololearn.com/W3gS00IGw160/?ref=app https://code.sololearn.com/W4CYCf5Izf4Q/?ref=app
30th Mar 2020, 11:10 PM
Gordon
Gordon - avatar
+ 2
Add the following line to the top of the css code. * {margin: 0; padding: 0;} This sets all margins and padding to zero; so headings, paragraphs, images and everything else have no spaces between them. I then set the spacing for each element as I want it. (You also need to add the curly brackets around {box-sizing:border-box;} . )
30th Mar 2020, 11:14 PM
Teri Sandstedt
Teri Sandstedt - avatar
+ 1
Just add this body,html{ padding: 0; margin: 0; } #name{ margin-top: 0; }
30th Mar 2020, 11:12 PM
Ore
Ore - avatar
0
Thanks all of you!))
30th Mar 2020, 11:21 PM
Andrew Plokhikh
Andrew Plokhikh - avatar