Am trying to set the body with and the code is not going through what might be the problem. body{width:100%, height:100vh}; how do I resolve this please?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
\ file: <!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
  <h1>Registration Form</h1>
  <p>Please fill out this form with the required information</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
  <h1>Registration Form</h1>
  <p>Please fill out this form with the required information</p>
</body>
</html>
\ file: body{width:100%, height:100vh};
body{width:100%, height:100vh};
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

Challenge: Step 7

Link to the challenge:

HI @Dan2006 !
Welcome to the forum!

It looks like you have some syntax errors here

I would suggest formatting your code in the standard css format to make it easier to see the error.

Here is your code formatted

body{
  width:100%, 
  height:100vh
};

Now take a close look at what you put at the end of the lines for width and height.
You shouldn’t use commas.

If you need extra help, take a look at how the css is writen for one of the previous projects you did

Hope that helps!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.