CSS-E.M.A501 (Overflow Contents)
CSS-E.M.A501 (Overflow Contents)
Assi gnment s
Version 1.1
Hanoi, 04/2019
Assignments JavaScript Essentials Issue/Revision: x/y
RECORD OF CHANGES
Contents
Unit 5 – Overflow contents............................................................................................................... 4
Objectives:................................................................................................................................ 4
Project Structure....................................................................................................................... 4
Problem 1:................................................................................................................................. 4
Problem 2:................................................................................................................................. 4
CODE: CSS-E.M.A501
TYPE: Medium
LOC: N/A
DURATION: 60 MINUTES
Problem 1:
In this problem, the content is overflowing the box because it has a fixed height. Keep the height
but cause the box to have scrollbars only if there is enough text to cause an overflow. Test by
removing some of the text from the HTML, that if there is only a small amount of text that does not
overflow, no scrollbar appears..
Expected output:
Problem 2:
In this task an image is in the box, it is bigger than the dimensions of the box so overflows visibly.
Change it to that any image outside of the box is hidden.
Expected output:
-- THE END --