I have css issue, I can't move child class outside from main class

by Jay   Last Updated May 22, 2020 19:24 PM

I want to give mergin only for child. And for this margin the chld box will go outsite of the parent box. But Its doesn't working!

.parent { background: green; width: 300px; height: 150px; display: block; position:absulate; }

.child {
    background: red; width: 150px; height: 75px; display: block;

    margin-top: 200px

    /* I want to give mergin only for child. And for this margin the chld        box will go outsite of the parent box. But Its doesn't working! */

}
 </style>

<div class="parent">
    <div class="child">
        Move this div
    </div>
</div>


Related Questions


display on leptop and desktop

Updated February 23, 2017 05:24 AM

Need some CSS advice

Updated September 26, 2019 17:24 PM


How to view crystal report in HTML page?

Updated October 30, 2018 14:24 PM