user2180861 user2180861 - 2 months ago 17
HTML Question

How to remove scrollbar in order to make the website fit in the browser

I made a website from my laptop. While testing my website in my laptop there was no any scroll bars neither horizontal nor vertical was appearing in any of the browser.

But if now if i test my website, in some other computer , it is showing horizontal and vertical scroll bar.

To avoid this i used css property

body{zoom: 70%;}
. But this code is working in few browser and also in only few pages.

Can anyone please suggest me a solution for my problem.

ncm ncm
Answer Source

ok maybe this helps you.

#main {
width: 90%;
margin: 20px auto 0 auto;
}