Skip to content

A universal way for creating divs whose content is vertically or both horizontally and vertically centered.

License

Notifications You must be signed in to change notification settings

somebody-vip/css3-centered-divs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

css3-centered-divs

A universal and easy way for creating divs whose content is vertically or both horizontally and vertically centered.

Info:

Referece: Centering in CSS: A Complete Guide

If you like this solution, would you please follow me and/or star this project on Github? Thanks!

How To Use:

  1. Include the css file by adding <link href=".../css3-centered-divs.css" rel="stylesheet> inside your html element.
  2. Insert a <div class="centered-div">...</div> or <div class="vertically-centered-div>...</div> to wrap the content that you want to center.

About

A universal way for creating divs whose content is vertically or both horizontally and vertically centered.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages