If I have the following:
#t {width:300px;height:300px;background-color:dimgray;border-radius:150px;z-index:1;}
#ticket{
height:100px;
top: 35%;
position: relative;
background-color:white;
width:300px;
z-index:2;
}
<div id="t">
<div id="ticket"></div>
</div>
The div t
contains the div ticket
, so how could I make the div hijo ticket
, inherit its width, without js
?