within another of the same size and position:absolute;

Go To StackoverFlow.com


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.


2012-04-04 04:42
by Caio Tarifa


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.

2012-04-04 04:53
by Marty Cortez
Is amazing, is fantastic, is crazy, is magical! Thanks man, worked perfectly. ( - Caio Tarifa 2012-04-04 05:04