css random Flashcards

1
Q

What is a good thing to check when having layout problems involving an element with a restricted height that should have a scroll bar it’s the content is too big?

A

The actual size of the container. A container element might be the correct size and checking this means the size of the container is not the problem. The problem is mots likely that the content is escaping it’s container which is the default behaviour of overflow. If this is happening then you need to change the overflow property of the container to either scroll or hidden.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly