Places elements correctly on the screen is the work of a professional software developer. This is what you learn to do today.
static
, relative
, absolute
, fixed
, sticky
z-index
What are meta tags?
There are some css properties that seem to have -webkit or -moz in front of them. They're called Vendor Prefixes. What are these? Why are those there?
How do CSS Animations work?
List some different ways we can define colors in CSS. Also: what is alpha?
What is a CSS media query and how can it help us in styling?
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
In this exercise, we'll take a series of simple comps and recreate each. You will make the appropriate number of div
tags with the div numbers indicated in the comps, give them a height
, width
, and background-color
and then make them match the layout in the comp. Here's an example of what this might look like in your HTML and CSS:
Your HTML:
<section id="example">
<div class="div1">
div1
</div>
<div class="div2">
div2
</div>
</section>
Your CSS:
div {
width: 100px;
height: 100px;
background-color: black;
color: white;
}
#example {
display: flex;
justify-content: space-between;
}
Requirements:
section
element.Github link: HTML
Github link: CSS