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

CSS - centralize div element with CSS calc() function

0 votes
43 views
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.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...