* {
    box-sizing:border-box;
}


body {
    background-color: lightsteelblue;
}


img {
    max-width: 100%;
}


/* padding= expanding space WITHIN object, margin= outside of object */
.block {
    background-color: lightpink;
    border:1px solid;
    padding: 10px;
    margin: 10px;
}

.inline {
    background-color: lightgreen;
    border: 1px solid;
    /* inline elements don't work well with padding, amrgin, width, or height */
}

.inline-block {
    display:inline-block;
    background-color: lightgray;
    border: 1px solid;
    padding:30px;
    margin:10px;
    width: 100px;
    height: 100px;
}

.container {
    background: lightgoldenrodyellow;
    border: 1px solid;
    padding: 20px;
    margin: 10px;
}

.content-box {
    background: lightcyan;
    padding: 50px;
    border: 5px dashed blue; 
    margin: 50px;
    width: 200px;
    height: 200px;
    box-sizing: content-box;
}

.border-box {
    background: lightcyan;
    padding: 50px;
    border: 5px dashed blue; 
    margin: 50px;
    width: 200px;
    height: 200px;
    box-sizing: border-box; 
}

.smiley {
    background-color: greenyellow;
    border: 2px solid red;
    padding: 10px;
    width: 200px;
    height: 200px;
    position: relative;
    top: 20px;
    left: 50px;
}

.smile {
    background: red;
    border: 1px solid;
    width: 100px;
    height: 30px;
    position: absolute; 
    top: 0;
    right: 0;
}


.fixed {
    background-color: aquamarine;
    border: 1px solid;
    padding: 20px;
    position: fixed;
    top: 0;
    right: 0;
}

.sticky {
    background: lightsalmon;
    border: 1px solid;
    padding: 20px;
    position: sticky;
    top: 0;
}