0
I have two Ivs,
DIV 1 is 80% wide, centralized and I have DIV 2 that is within DIV 1, which I want to be 100% wide, but since it is within DIV 1 that is 80%, then 100% becomes 100% of DIV 1 (turning 80%). But I want DIV 2 to have 100% of the width of the screen, even inside DIV 1, has how to do this?
<div class="1"> <!--TEM 80%-->
<div class="2"></div><!--TEM 100%, ou seja, pega o total da DIV1, mas quero que seja 100% da TELA TODA---->
</div>
try to use
width:100vw;
that will take the total size of the screen, in case you want to reduce some value just usewidth:calc(100vw - 20px);
– Guilherme Lautert
Thanks William, it was supposed to work, but not the, as my print, it ignores looks the position Absolut and starts counting the screen from the div and not the screen.
– Lucas de Carvalho
Remembering that I didn’t use % and yes vw. Second, do you have any
position:relative
before this div?– Guilherme Lautert
I thought so, William, but there was another in the father div!
– Lucas de Carvalho