within another of the same size and position:absolute;

Go To StackoverFlow.com

0

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.

http://jsfiddle.net/vwuUj/

2012-04-04 04:42
by Caio Tarifa


1

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
Ads