Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove body tag margin in Angular 4?

Tags:

angular

The Angular 4 app.component.html does not provide a body tag which can be styled to remove the body tag padding.

screenshot showing margin

The following in app.component.css also didn't work:

body {
margin : 0;
}

Is there any way to remove the margin?

like image 967
Devanshu Kashyap Avatar asked Nov 28 '22 16:11

Devanshu Kashyap


1 Answers

You should put your css code into style.css, not app.component.css

like image 125
Dusan Radovanovic Avatar answered Dec 22 '22 11:12

Dusan Radovanovic