styling in regards to appearance. background colors and image
This commit is contained in:
parent
e3f9e580f3
commit
0ca56186b8
|
@ -34,9 +34,9 @@
|
|||
|
||||
</section>
|
||||
|
||||
<h3 class="facts-header">Baxter facts!</h3>
|
||||
|
||||
<section class="baxter-info">
|
||||
<h3 class="facts-header">Baxter facts!</h3>
|
||||
<div class="baxter-is">
|
||||
<p>Baxter is:</p>
|
||||
<ul>
|
||||
|
@ -75,9 +75,9 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<h3>My favorite photos of Baxter</h3>
|
||||
|
||||
<section class="favorite-baxter-photos">
|
||||
<h3>My favorite photos of Baxter</h3>
|
||||
<figure>
|
||||
<img src="./img/posed-baxter.jpg" alt="My cat Baxter laying on my chest over a blanket in bed looking at the camera. The many details and patterns of his mackeral tabby fur pattern are fully visible">
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
|
@ -1,3 +1,8 @@
|
|||
:root {
|
||||
--section-color: #fccce4bb;
|
||||
--border-color: #f6da92;
|
||||
}
|
||||
|
||||
*, *::before, *::after {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -9,6 +14,8 @@ html {
|
|||
}
|
||||
|
||||
body {
|
||||
background-image: url("../site-resources/assets/bg.png");
|
||||
background-attachment: fixed;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
@ -67,9 +74,15 @@ main {
|
|||
|
||||
.favorite-baxter-photos {
|
||||
display: grid;
|
||||
grid-template-rows: 25rem 25rem;
|
||||
grid-template-rows: 5rem 25rem 25rem;
|
||||
grid-template-columns: 20rem 20rem;
|
||||
justify-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.favorite-baxter-photos h3 {
|
||||
grid-row: 1/2;
|
||||
grid-column: 1/3;
|
||||
}
|
||||
|
||||
.favorite-baxter-photos figure {
|
||||
|
@ -85,3 +98,10 @@ main {
|
|||
object-fit: fill;
|
||||
}
|
||||
|
||||
section {
|
||||
background-color: var(--section-color);
|
||||
padding: 1.25rem;
|
||||
border: 2px solid var(--border-color);
|
||||
border-radius: 15px;
|
||||
width: 50rem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue