scrimba
The JavaScript Language [JSL] Module 4 (Control Flow)
Energy Drink Recommender
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Energy Drink Recommender
by
AboutCommentsNotes
Energy Drink Recommender
by
Expand for more info
index.css
run
preview
console
/* Reset some default styles for the page */
body, p {
margin: 0;
padding: 0;
background-color: black;
}

body {
background-image: url('energy-now.gif');
background-size: cover;
background-repeat: no-repeat;
background-position: center; /* Center the background image */
/* background-attachment: fixed; Optional: Keeps the background fixed */
height: 100vh; /* Make the background fill the entire viewport height */
overflow: hidden; /* Hide any overflow content */
display: flex; /* Use flexbox to center the h1 vertically and horizontally */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}

/* Style the h1 element */
h1 {
font-weight: bold;
font-size: 20px;
text-align: center;
color: white; /* Change text color to white */
}
Console
!
SyntaxError: Unexpected token '&&'
,
/index.html
LIVE