22 Apr 2020  Meta Code

CSS Center Alignment

Basic alignment for elements with relative display:

/* Align a DIV element */

.divcenter {
  margin: auto;
}

/* Align an IMG element */

.imgcenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Webmentions & Comments

Copyright © Paramdeo Singh. Built with Jekyll and in Guyana. All Rights Reserved.

Last Site Build on Sun, 09 May 2021 20:55:38 -0400

1MB Club Badge