Build the game button
The full CSS template is already there. Change the values until your button matches the target.
Match the targets, fix broken CSS and create your own designs. If you already know CSS, start with the Fast Track Check.
button every button#play one ID.game-button a classcolor text colourbackground-color backgroundwidth how wideheight how tallborder border shortcutborder-radius round cornersfont-size text sizefont-weight boldnessfont-family font.game-button {
/* COLORS */
color: white;
background-color: #5b45f0;
/* SIZE */
width: 200px;
height: 55px;
/* BORDER */
border: none;
border-radius: 14px;
/* TEXT */
font-size: 18px;
font-weight: bold;
font-family: Arial, sans-serif;
}
Experienced coder? Try these without opening the reference. This is not a test for marks. It is just a fast way to see what you already know.
id="play" green.
class="danger" red.
button {
color: white;
}
#play {
background-color: green;
width: 180px;
height: 50px;
border: none;
border-radius: 12px;
font-weight: bold;
}
.danger {
background-color: red;
}
Try the target first. Open a hint only if you actually need it.
The full CSS template is already there. Change the values until your button matches the target.
Same properties, very different design.
border-radius.
This time the border is part of the design.
border: 3px solid blue; means width + style + colour.
Use a tag selector, an ID and a class in the same mini page.
button, #play, .danger.
The colours are right, but several values make the button look ridiculous.
Real pages often use one strong button and one quieter button.
Use the same four CSS properties to make completely different shapes.
width, height, background-color and border-radius.
No exact target. Make three buttons that clearly belong to the same game.
These use the same CSS 1 skills, but give you less starter code and more design decisions.
Create PLAY, SETTINGS and DELETE. Use a shared class, then an ID or extra class to make one button special.
Choose a button you recognise from a website or app and recreate its basic colours, size, border and text.
Copy the same CSS template four times and make four buttons that look completely different.
Use one class for the shared design, then make PLAY and DELETE different without rewriting everything.
.menu-button for shared CSS, then #play and .danger for differences.
Make four clearly different designs. You may only use CSS 1 properties.
If you can use tag, ID and class selectors and confidently edit a button template, you have the CSS 1 skills we need.