Difference between Overflow Scroll and Auto In Html?

When the overflow of an element is set to scroll, then a scroll bar is always visible on the element whether it is needed or not (it appears as inactive but it is still visible).

The primary reason behind this is if your design is intended to be pixel accurate.

If you care about pixel accurate measurements, then the last thing you want is the bar being removed and you having to recalculate positions. When scroll is used you know the bar will always take up that much space even if it’s not being used.

When it is set to auto, then the scroll bar appears only if it is needed (for example if element’s inner content height is more than element’s height).

To make a perfect website all these things should be care. Tririd Technology develops an awesome website as per the client requirement. Our team construct a website inHTML, CSS,JavaScript,PHP, Word press etc….

To get Tririd Service

Visit us @ ices/

Call us @ 8980010210

Leave a Reply

Your email address will not be published. Required fields are marked *