Skip to content

Instantly share code, notes, and snippets.

View qzm's full-sized avatar
🚀
I may be slow to respond.

Aaron Qiu qzm

🚀
I may be slow to respond.
View GitHub Profile
@qzm
qzm / dropdown.css
Created April 27, 2016 08:54
dropdown snippets
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
@qzm
qzm / vertical-navigation-bar.html
Created April 27, 2016 08:58
Vertical Navigation Bar
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: #f1f1f1;
@qzm
qzm / horizontal-navigation-bar.html
Created April 27, 2016 09:02
Horizontal Navigation Bar
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
@qzm
qzm / link.css
Created April 27, 2016 09:10
link style
@qzm
qzm / center.css
Created April 27, 2016 09:17
center
.center {
margin: auto;
width: 60%;
border: 3px solid #73AD21;
padding: 10px;
}
@qzm
qzm / link-button.html
Created April 27, 2016 09:20
link button
@qzm
qzm / viewport.html
Created April 27, 2016 09:22
Viewport
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@qzm
qzm / columns.css
Created April 27, 2016 09:24
columns
.col-1 {
width: 8.33%;
}
.col-2 {
width: 16.66%;
}
.col-3 {
width: 25%;
}
.col-4 {
@qzm
qzm / media-query.html
Created April 27, 2016 09:28
Media Query
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
.row::after {
content: "";
@qzm
qzm / tabs.html
Created April 27, 2016 10:30
tabs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tab</title>
<style>
ul {
text-align: center;
width: auto;
}