Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined July 2014
·
1stkarabuta
ABERBA KARABUTA
GHANA
·
·
0 Protips
1 Comments
Posted to
Center a fixed div without width
over 1 year ago
margin: 10px auto;
position: fixed;
width: 500px;
display: block;
this will center the element
Achievements
1 Karma
0 Total ProTip Views
margin: 10px auto;
position: fixed;
width: 500px;
display: block;
this will center the element