relative-container


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



Copy this code and paste it in your HTML
  1. // use for containers with absolutely positioned children
  2. @mixin relative-container ($padding-top: 0, $padding-bottom: 0) {
  3. position: relative;
  4.  
  5. @if $padding-top != 0 {
  6. padding-top: $padding-top;
  7. }
  8.  
  9. @if $padding-bottom != 0 {
  10. padding-bottom: $padding-bottom;
  11. }
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.