Created
March 24, 2015 17:54
Old school page
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
<html> | |
<head> | |
<link href="styles.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="sidebar"> | |
<ul id="mainMenu"> | |
<li><a href="#">Link 1</a></li> | |
<li class="active"><a href="#">Link 2</a></li> | |
<li><a href="#">Link 3</a></li> | |
</ul> | |
</div> | |
<div class="main"> | |
<a class="button" href="#">Click me</a> | |
</div> | |
</div> | |
</body> | |
</html> |
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
body { | |
margin: 0; | |
padding: 0; | |
} | |
.container { | |
display: flex; | |
} | |
.container #sidebar { | |
order: 1; | |
width: 200px; | |
background: #d5e3e6; | |
} | |
.container .main { | |
order: 2; | |
width: 100%; | |
padding: 1em; | |
} | |
ul#mainMenu { | |
margin: 0; | |
padding: 0; | |
width:100%; | |
list-style-type: none; | |
} | |
ul#mainMenu li.active a { | |
background-color: #eff7f3; | |
} | |
ul#mainMenu li a { | |
text-decoration: none; | |
color: #2a1d30; | |
padding: 10.5px 11px; | |
display:block; | |
} | |
ul#mainMenu li a:visited { | |
color: #807983; | |
} | |
ul#mainMenu li a:hover, ul#mainMenu li .current { | |
color: #ef4942; | |
background-color: #fbd9d8; | |
} | |
a.button { | |
background-color: #2a1d30; | |
color: #eff7f3; | |
text-decoration: none; | |
padding: 0.5em; | |
border-radius: 0.5em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment