Created
July 10, 2019 07:23
-
-
Save pastleo/fe912a43e01376a55a8a59dfc678f068 to your computer and use it in GitHub Desktop.
This file contains 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"> | |
<title></title> | |
<style> | |
body { | |
margin: 0; | |
height: 100vh; | |
width: 100vw; | |
display: flex; | |
justify-content: center; | |
align-items: stretch; | |
flex-direction: row; | |
} | |
.container { | |
flex: 1; | |
display: flex; | |
align-items: stretch; | |
flex-direction: row; | |
} | |
.content-bg { | |
flex: 0.65; | |
background: green; | |
display: flex; | |
justify-content: flex-end; | |
align-items: center; | |
} | |
.right-bg { | |
flex: 0.35; | |
background: blue; | |
display: flex; | |
justify-content: flex-start; | |
align-items: center; | |
} | |
.content { | |
flex: 1; | |
position: relative; | |
padding: 20px; | |
max-width: 832px; | |
height: 500px; | |
} | |
.right { | |
flex: 1; | |
position: relative; | |
padding: 20px; | |
max-width: 448px; | |
height: 500px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class='content-bg'> | |
<div class='content'> | |
<h2>content</h2> | |
</div> | |
</div> | |
<div class='right-bg'> | |
<div class='right'> | |
<h2>right</h2> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment