I have been a developer for a couple of years now, I write articles to help myself learn and help others on the way, and I believe this is the wisest decision I have taken so far.
I write articles on JavaScript, Web Development, Machine Learning, Self-Improvement, Blogging and Productivity.
Hey 馃憢 I am Milind Soorya, a technology blogger from India.
Hello Angie, Thanks for pointing it out. I am really sorry for not explaining it properly. The above code snippet indeed works fine, At the time of writing this particular article, the newsletter component was within the body tag, but after some time I thought it would be best to add the newsletter to all the pages and I decided to move the newsletter component to the same level as my main div(There is a container div for my entire website which wraps around the head, navbar, main and footer elements). In doing so I was able to bypass the padding issue even without the above code snippet, as my main tag, the section containing the newsletter, all reside at the same level. As I mentioned in the article. there are numerous ways to fix this small issue. Thanks for sharing yours. Also, by setting max-width: 100%; you won't have to worry about the scroll space.