SCSS mixing absolute center

@mixin abscenter ($oldBrowser:false){ @if($oldBrowser){ margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }@else{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.