rounded corners expand vert


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. .box .boxTop {
  3. }
  4. .box .boxBody {
  5. margin-bottom:-2px;
  6. margin-top:-2px;
  7. }
  8. .box > .boxBody {
  9. margin-bottom:auto;
  10. margin-top:auto;
  11. }
  12. </style>
  13.  
  14. <div class="box">
  15. <div class="boxTop">img</div>
  16. <div class="boxBody">content</div>
  17. <div class="boxFoot">img</div>
  18. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.