I have created below LWC page


    <p>Hello From the community page.</p>

no CSS and JS added just above 3 lines in the HTML

Added it on the community as shown below

[![enter image description here][1]][1]

and now previewing this page it automatically added top and left padding, which is not at all required.

[![enter image description here][2]][2]

how can I remove the padding/margin and align the static text at the top of the page. [1]: https://i.stack.imgur.com/fDPp6.png [2]: https://i.stack.imgur.com/PG1Vg.png

1 Answer 1


The LWC will inherit some styles from the template being used. These styles can be overridden. The instructions for the same are at



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .