Last active
September 13, 2017 21:07
-
-
Save MariaJackson1/aac2ae3aa93deb6c1df92bd32e6dc9a0 to your computer and use it in GitHub Desktop.
Vertical Align
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| width: 1080px; | |
| height: 1000px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: center; | |
| } | |
| .yellow-image { | |
| align-self: center; | |
| margin-left: 50px; | |
| } | |
| .yellow-image:after { | |
| content: "@jeremy dulin"; | |
| position:relative; | |
| top: 20px; | |
| left: -415px; | |
| } | |
| .watermelon { | |
| align-self: center; | |
| margin-left: -50px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Vertical Align</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="yellow-image"> <img src="images/yellow.jpg" width="411px"></div> | |
| <div class="watermelon"><img src="images/watermelon.jpg" width="411px"></div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment