Compare commits
12 Commits
22c7f8e307
...
a038fa6818
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a038fa6818 | ||
|
|
cc459e545a | ||
|
|
56c5c95843 | ||
|
|
cb7a0a0438 | ||
|
|
04eba451dc | ||
|
|
86baf2e8ef | ||
|
|
ab37fe0e0a | ||
|
|
6a4c1c2f27 | ||
|
|
832618ca0a | ||
|
|
cd79dce60a | ||
|
|
3add3a714c | ||
|
|
d299f387ee |
1
flex/01-flex-center/COMPLETE.md
Normal file
1
flex/01-flex-center/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -3,6 +3,9 @@
|
||||
border: 4px solid midnightblue;
|
||||
width: 400px;
|
||||
height: 300px;
|
||||
display: flex;
|
||||
justify-content:center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.box {
|
||||
|
||||
1
flex/02-flex-header/COMPLETE.md
Normal file
1
flex/02-flex-header/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -1,6 +1,10 @@
|
||||
.header {
|
||||
font-family: monospace;
|
||||
background: papayawhip;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
@ -14,6 +18,11 @@
|
||||
ul {
|
||||
/* this removes the dots on the list items*/
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
gap: 8px;
|
||||
|
||||
}
|
||||
|
||||
a {
|
||||
@ -23,3 +32,4 @@ a {
|
||||
/* this removes the line under the links */
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
1
flex/03-flex-header-2/COMPLETE.md
Normal file
1
flex/03-flex-header-2/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -9,6 +9,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="left">
|
||||
<div class="logo">
|
||||
LOGO
|
||||
</div>
|
||||
@ -17,10 +18,13 @@
|
||||
<li><a href="https://google.com">link-two</a></li>
|
||||
<li><a href="https://google.com">link-three</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class ="right">
|
||||
<button class="notifications">
|
||||
1 new notification
|
||||
</button>
|
||||
<div class="profile-image"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -12,6 +12,10 @@ body {
|
||||
background: white;
|
||||
border-bottom: 1px solid #ddd;
|
||||
box-shadow: 0 0 8px rgba(0,0,0,.1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 8px;
|
||||
|
||||
}
|
||||
|
||||
.profile-image {
|
||||
@ -45,4 +49,13 @@ a {
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
gap: 16px;
|
||||
}
|
||||
.left, .right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
1
flex/04-flex-information/COMPLETE.md
Normal file
1
flex/04-flex-information/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -10,21 +10,29 @@
|
||||
<body>
|
||||
<div class="title">Information!</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="info">
|
||||
<img src="./images/barberry.png" alt="barberry">
|
||||
<div class="text">This is a type of plant. We love this one.</div>
|
||||
|
||||
</div>
|
||||
<div class="info">
|
||||
<img src="./images/chilli.png" alt="chili">
|
||||
<div class="text">This is another type of plant. Isn't it nice?</div>
|
||||
|
||||
</div>
|
||||
<div class="info">
|
||||
<img src="./images/pepper.png" alt="pepper">
|
||||
<div class="text">We have so many plants. Yay plants.</div>
|
||||
|
||||
</div>
|
||||
<div class="info">
|
||||
<img src="./images/saffron.png" alt="saffron">
|
||||
<div class="text">I'm running out of things to say about plants.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- disregard this section, it's here to give attribution to the creator of these icons -->
|
||||
<div class="footer">
|
||||
<div>Icons made by <a href="https://www.flaticon.com/authors/icongeek26" title="Icongeek26">Icongeek26</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,5 +1,6 @@
|
||||
body {
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img {
|
||||
@ -8,8 +9,10 @@ img {
|
||||
}
|
||||
|
||||
.title {
|
||||
border: 1px solid black;
|
||||
font-size: 36px;
|
||||
font-weight: 900;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
/* do not edit this footer */
|
||||
@ -24,3 +27,13 @@ img {
|
||||
justify-content: center;
|
||||
background: #eee;
|
||||
}
|
||||
.container{
|
||||
display: flex;
|
||||
border: 1px solid red;
|
||||
justify-content: center;
|
||||
gap: 52px;
|
||||
}
|
||||
|
||||
.info{
|
||||
max-width: 200px;
|
||||
}
|
||||
@ -4,15 +4,16 @@ Let's build a little off the previous exercise. Here, you're going to give two e
|
||||
|
||||
This will help you further practice adding classes and using class selectors, so be sure you add the class attribute in the HTML file. For the remainder of these exercises, the format of any colors is entirely up to you; we trust you'll practice using the different values! The properties you need to add to each element are:
|
||||
|
||||
* **The first element**: a black background, white text color, and a bold font weight
|
||||
* **The second element**: a yellow background
|
||||
* **Both elements**: a font size of 28px and a list of fonts containing `Helvetica` and `Times New Roman`, with `sans-serif` as a fallback
|
||||
- **The first element**: a black background and white text
|
||||
- **The second element**: a yellow background
|
||||
- **Both elements**: a font size of 28px and a list of fonts containing `Helvetica` and `Times New Roman`, with `sans-serif` as a fallback
|
||||
|
||||
## Desired Outcome
|
||||
|
||||

|
||||
|
||||
|
||||
### Self Check
|
||||
|
||||
- Does each element have a unique class name?
|
||||
- Did you use the grouping selector for styles that both elements share?
|
||||
- Did you make separate rules for the styles unique to each element?
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
.inverted,
|
||||
.fancy {
|
||||
font-family: Helvetica, "Times New Roman", sans-serif;
|
||||
@ -8,7 +7,6 @@
|
||||
.inverted {
|
||||
background-color: black;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fancy {
|
||||
|
||||
1
foundations/06-cascade-fix/COMPLETE.md
Normal file
1
foundations/06-cascade-fix/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -15,6 +15,7 @@ body {
|
||||
|
||||
.para {
|
||||
font-size: 32px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.confirm {
|
||||
|
||||
1
margin-and-padding/01-margin-and-padding-1/COMPLETE.md
Normal file
1
margin-and-padding/01-margin-and-padding-1/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -7,15 +7,15 @@ body {
|
||||
background: pink;
|
||||
border: 3px solid blue;
|
||||
/* CHANGE ME */
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
padding: 32px;
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
.two {
|
||||
background: lightblue;
|
||||
border: 3px solid purple;
|
||||
/* CHANGE ME */
|
||||
margin-bottom: 0px;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.three {
|
||||
@ -23,6 +23,6 @@ body {
|
||||
border: 3px solid brown;
|
||||
width: 200px;
|
||||
/* CHANGE ME */
|
||||
padding: 0px;
|
||||
margin-left: 0px;
|
||||
padding: 32px;
|
||||
margin-left: auto;
|
||||
}
|
||||
1
margin-and-padding/02-margin-and-padding-2/COMPLETE.md
Normal file
1
margin-and-padding/02-margin-and-padding-2/COMPLETE.md
Normal file
@ -0,0 +1 @@
|
||||
# COMPLETE
|
||||
@ -11,7 +11,7 @@
|
||||
<div class="card">
|
||||
<h1 class="title">I'm a card</h1>
|
||||
<div class="content">I have content inside me..lorem ipsum blah blah blah. Here's some stuff you need to read.</div>
|
||||
<div class="button-container">and a <button>BIG BUTTON</button></div>
|
||||
<div class="button-container">and a <br><button>BIG BUTTON</button></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -6,22 +6,34 @@ body {
|
||||
.card {
|
||||
width: 400px;
|
||||
background: #fff;
|
||||
margin: 16px auto;
|
||||
}
|
||||
margin: 8px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.title {
|
||||
background: #e3f4ff;
|
||||
font-size: 16px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.content {
|
||||
background: #e3f4ff;
|
||||
padding-top: 16px;
|
||||
padding-bottom: 16px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.button-container {
|
||||
background: #e3f4ff;
|
||||
text-align: center;
|
||||
padding: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
button {
|
||||
background: white;
|
||||
border: 1px solid #eee;
|
||||
padding: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user