Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy

Anna Farish
Anna Farish
1,694 Points

Fourth MASH question -- Can't add it!

I tried to add a fourth question to the MASH game but it isn't showing up... What am I getting wrong? Help would be very much appreciated! Here's my html.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=0.5, minimal-ui">

  <title>Futuristic MASH</title>
  <link href="normalize.css" rel="stylesheet">
  <link href="style.css" rel="stylesheet">
</head>
<body>

  <h1 class="logo"><img src="img/mash-logo.svg" /></h1>
  <p class="description">Fill in the blanks and your future will be foretold.</p>

<form action="" method="post" id="mash">

  <div id="answers" class="hide">
      <p>Your home is in <span id="location"></span> with a <span id="pet"></span> as you are a <span id="profession"></span> who owns a <span id="home"></span> and is married to <span id="spouse"></span>.
  </div>

  <div class="bucket">

    <div class="choice-bucket">
      <h4 class="highlight">Where will you live?</h4>
        <input name="location[]" type="text">
        <input name="location[]" type="text">
        <input name="location[]">
        <input name="location[]">
      </div>

      <div class="choice-bucket">
        <h4 class="highlight">Your future profession?</h4>
          <input name="profession[]">
          <input name="profession[]">
          <input name="profession[]">
          <input name="profession[]">
      </div>

     <div class="choice-bucket">
        <h4 class="highlight">What's your future pet?</h4>
          <input name="pet[]">
          <input name="pet[]">
          <input name="pet[]">
          <input name="pet[]">
      </div>

        <div class="choice-bucket">
      <h4 class="highlight">Who will you marry?</h4>
        <input name="spouse[]">
        <input name="spouse[]">
        <input name="spouse[]">
        <input name="spouse[]">
      </div>

  </div>

  <input type="submit" value="Tell my fortune">
</form>
<script src=""></script>
</body>
</html>
Anna Farish
Anna Farish
1,694 Points

I also altered the choice.bucket in CSS to 25% instead of 33.3333%

Hmm, I entered this code as is into my workspaces and everything is working fine. Can you show us your javascript and CSS pages as well?