<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</title>
    *{ margin: 0; padding: 0;}
    body{ font-family: Arial, Helvetica, sans-serif;}
    .anythingMarginCollapse{margin: 50px auto; max-width:500px ;}
    .anythingMarginCollapse li{margin: 20px 0 40px; padding:5px 10px; background: #eee; border-radius: 5px;
    border:1px solid #ccc; list-style: none; float: left; width: 100%;}

<div class="anythingMarginCollapse">
        <li>What is margin collapse</li>
        <li>margin collapsing</li>
        <li>How to solve margin collapse problem</li>
        <li>what is margin collapsing</li>
        <li>How to work margin collapse</li>
<a href="https://anything-learn.blogspot.com/2018/10/css-margins.html" style="color:#333;  bottom:5px; left:0; right:0; margin:auto; text-align:center; font-family:arial; font-size:11px" target="_blank"><b>Refrence Link:</b> https://anything-learn.blogspot.com/2018/10/css-margins.html</a>