But is there a better way than this so that the child tag appears exactly inside the parent tag?
UPDATE
I want to keep position: fixed for child tag
.parent {
height: 300px;
padding: 10px;
border: 1px solid red;
}
.child {
position: fixed;
height: 100px;
width: 100%;
border: 1px solid black;
}
0 comments:
Post a Comment
Thanks