Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 03-codigotchi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
<main>

<!-- Add the codigotchi and its screen -->
<section>
<section class="codigotchi">
<img src="images/codigotchi.png" />
<div class="codigotchi-screen"></div>
</section>

<!-- Add control elements -->
Expand Down
28 changes: 28 additions & 0 deletions 03-codigotchi/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,31 @@ h3 {
font-size: 24px;
font-weight: bold;
}

/* Step 3: Codigotchi and Button */

button {
border: none;
background-color: #f71469;
border-radius: 8px;
padding: 12px 16px;
margin: 12px;
}

.codigotchi {
position: relative;
width: 230px;
margin: 0 auto 24px auto;
}

.codigotchi-screen {
position: absolute;
top: 118px;
left: 56px;
width: 120px;
height: 120px;
background-image: url('./images/static.png');
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
}