vertical align

In this example below you will see how to do a vertical align with some HTML / CSS and Javascript

This awesome code was written by rafaelferreira, you can see more from this user in the personal repository.
You can find the original code on
Copyright rafaelferreira ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>vertical align</title>
      <link rel="stylesheet" href="css/style.css">



<div id="try">
   <img src="" alt="">



/*Downloaded from */
  margin: 0 auto;
  display: block;