Skip to content

Instantly share code, notes, and snippets.

<style type="text/css" media="screen">
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.elem {
border: solid #6AC5AC 3px;
position: relative;
<style type="text/css" media="screen">
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.elem {
border: solid #6AC5AC 3px;
position: relative;
<style type="text/css" media="screen">
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.elem {
border: solid #6AC5AC 3px;
position: relative;
<nav>
<ul>
<li data-section="about-me">
<a href="#" class="item"> About me </a>
<ul class="dropdown">
<li><a href="#" class="item">Early years</a></li>
<li><a href="#" class="item">First works</a></li>
<li><a href="#" class="item">Today and tomorrow</a></li>
</li>
</ul>
<nav>
<ul>
<li data-section="about-me">
<a href="#" class="item"> About me </a>
<ul class="dropdown">
<li><a href="#" class="item">Early years</a></li>
<li><a href="#" class="item">First works</a></li>
<li><a href="#" class="item">Today and tomorrow</a></li>
</li>
</ul>
<nav>
<ul>
<li data-section="about-me">
<a href="#" class="item"> About me </a>
<ul class="dropdown">
<li><a href="#" class="item">Early years</a></li>
<li><a href="#" class="item">First works</a></li>
<li><a href="#" class="item">Today and tomorrow</a></li>
</li>
</ul>
html{
height: 100%;
}
body{
background-image: repeating-linear-gradient(315deg, #ddd, #ddd, 40px, #aaa 40px, #aaa 80px);
padding: 20px;
height: 100%;
}
nav{
margin: 0 auto;
html{
height: 100%;
}
body{
background-image: repeating-linear-gradient(315deg, #ddd, #ddd, 40px, #aaa 40px, #aaa 80px);
padding: 20px;
height: 100%;
}
nav{
margin: 0 auto;
@pedrodelgallego
pedrodelgallego / dabblet.css
Created March 13, 2013 04:52
Positioning exercises
/*
Positioning exercises
*/
.container {
border: teal;
}
.box {
color: white;
.container {
position: relative;
left: 100px;
margin: 200px auto;
width: 500px;
height: 500px;
}
.circle {
position: absolute;