Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active June 7, 2019 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/767931e97c8eb98a418673fdd24f3002 to your computer and use it in GitHub Desktop.
Save Beyarz/767931e97c8eb98a418673fdd24f3002 to your computer and use it in GitHub Desktop.
A simple designed website split in half. I believe this type of style got lots of potential and could be used in a variety of ways with simplicity in mind.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Split</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
</head>
<body>
<div id="left-side">
<h1 id="heading">Title</h1>
<div class="placeholder">
<p>Placeholder</p>
</div>
</div>
<div id="right-side">
<p class="hor-ver-cen">Content</p>
</div>
</body>
</html>
body {
font-family: 'Nunito', sans-serif;
padding: 0;
margin: 0;
}
#left-side {
background-color: #f5f4f4;
text-align: center;
position: fixed;
height: 100%;
width: 50%;
}
#heading {
border-bottom: 1px solid rgba(220, 220, 220, 0.5);
text-decoration: none;
font-weight: bold;
color: #636b6f;
font-size: 18px;
display: block;
margin-top: 0%;
padding: 10%;
}
.placeholder {
margin-top: 0%;
padding: 3%;
}
#right-side {
position: absolute;
overflow: scroll;
height: 100%;
width: 50%;
right: 0%;
}
.hor-ver-cen {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment