Styling using CSS and Bootstrap 4
- Include the Bootstrap CSS styles in the HTML head. Instructions can be found here
- We don’t neccessarily need to include the JS Scripts in this assignment.
- merely doing that should make the page look something like this.
a little better, already
- Put a border around the 2 divs;
- Make sure to include the stylesheet file below the bootstrap stylesheet.
- Tip: try typing the Emmet abbreviation:
link:css
then hit enter. VSCode should make the element and you’ll only need to change the path.
- In the styles.css file:
- set a
1px solid black;
border for#welcome-screen
- set a
1px solid red;
border for#game-screen
- set a
- Apply Bootstrap classes to the buttons. Examples on Button Classes can be found here
- Set the
Start Game!
to use the bluebtn btn-primary
button. - Set the
Go!
to use the greenbtn btn-success
button.
- Set the
Apply Bootstrap class
custom-select
to select dropdown. More Info about Bootstrap Select/Dropdown herefor the
div
immedietly below the 2form
, give it a class name ofform-group
- for the
<input id="username" ...>
, add a class ofform-control
It should now look like this.
Not the best look, but it’ll do for now Let’s start building the game logic
Next: Game Logic