Coding Camp
<div>
element - a very general “division” of website content.
<div>
spooky.html
<div id="base">
<div id="background">
<div id="spookster">
<div id="peepers"></div>
<!-- Short for booplesnoot -->
<div id="snoot"></div>
<div id="left-waggler"></div>
<div id="right-waggler"></div>
</div>
<div id="feets">
<div id="feet"></div>
<div id="feet"></div>
<div id="feet"></div>
<div id="feet"></div>
</div>
</div>
</div>
spooky.html
*
asterisk to apply the style to all elements.vh
and width vw
#e8e0ff
is this color#e8e0ff
is this color<div>
to hold for 4 feet and also those 4 feet#e8e0ff
is this colorborder-top: 0
:styles.css
/* the :before allows */
/* 2 styles to one div */
/* Whites of the eyes */
#peepers:before{
content: "";
position: absolute;
background: white;
width: 2.5vmin;
height: 2.5vmin;
border-radius: 50%;
left: 2vmin;
box-shadow: 14vmin 0 white;
}
#snoot {
position: absolute;
width: 4vmin;
height: 2vmin;
border: 0.7vmin solid black;
border-bottom-left-radius: 4vmin;
border-bottom-right-radius: 4vmin;
border-top: 0;
top: 16vmin;
left: 12vmin;
}
/* Both wagglers (hands) have */
/* much in common */
#left-waggler, #right-waggler {
position: absolute;
width: 4vmin;
height: 4vmin;
border: 0.5vmin solid black;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
border-top: 0;
}
/* But are in different */
/* 1. locations and */
/* 2. orientations */
#left-waggler {
top: 22vmin;
left: 6vmin;
transform: rotate(-45deg)
}
#right-waggler{
top: 22vmin;
left: 18vmin;
transform: rotate(45deg)
}