I have a question about the position attribute, looks the <div class='bloqued'></div>
, I need to get the same size as the parent div in any circumstance (including resizing the page), Is it possible? Thanks.
make the position of your parent container relative
, like so:
.text {
position: relative;
}
This sets the width and height limits for your absolutely-positioned bloqued
div inside
I updated your original script to illustrate.