I
I
ixon2014-03-30 12:11:39
css
ixon, 2014-03-30 12:11:39

How to make a large block inside a small one so that the big one does not go beyond it?

There is one small block of about 100x100, inside of which there is a large block of about 200x200.
How to make a large block not climb out of a small one, but be inside it, like the content of an iframe tag?

<div style="background:#00FFFF;width:100px;height:100px">
<div style="background:#FF0000;width:200px;height:200px"></div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gogolinsky, 2014-03-30
@ixon

write small block in css
overflow: auto;
jsfiddle.net/FavXP/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question