When we are designing a page HTML with frames, one of the things that can happen to us is that the content of one of the frames is too large. That is why the browser will adapt the page to the frame and if there is an overflow of the content, it will set scrolls. But what happens if we don’t want the scrolls to appear in the frame.
The idea is simple. We don’t want scrolls to appear in our frame. Neither vertical nor horizontal. To do this, what we have to do is manipulate the scrolling attribute of the FRAME.
This attribute can have the following values:
- yes, if we want the scrolls to always appear.
- no, if we don’t want the scrolls to appear.
- auto, if we let the browser decide by the size of the loaded page of the frame.
This is why we must use the value no. We are left with the following line of code:
Be careful, remember that the FRAME will always be inside a FRAMESET. In which there can be frames with scroll and others without it. The typical case is when we have a menu frame (either top or side) and the content. We will be interested in ensuring that the menu never overflows, but that the content does.
