Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

CSS - centralize div element with CSS calc() function

0 votes
added Jun 18 in CSS by lcjr Second Warrant Officer (3,200 points)
.centralize {
  width: 984px;
  position: fixed;
  right: calc((100% - 984px) / 2);
  top: 20%;


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.