Design a Greeting Card - Step 23

Tell us what’s happening:

I’m encountering the same error as the code, which states that it doesn’t match the requirements. However, I’ve researched and found that a previous student also faced the same issue with the same code. I’ve attempted to reset and use a different code, but it still doesn’t work. Could you please provide the best solution or suggest anything I might be missing?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Greeting Card</title>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>
    <div class="card" id="greeting-card">
      <h1>Happy Birthday!</h1>
      <p class="message">
        Wishing you all the happiness and joy on your special day!
      </p>
      <div class="card-links">
        <a href="#send" class="send-link">Send Card</a>
        <a href="#share" class="share-link">Share on Social Media</a>
      </div>
  	</div>
    <section id="send">
      <h2>Sending your card...</h2>
      <p>Card successfully sent to your recipient!</p>
    </section>
    <section id="share">
      <h2>Sharing your card...</h2>
      <p>Your card was shared on social media!</p>
    </section>
  </body>
</html>
/* file: styles.css */
body {
  font-family: Arial, sans-serif;
  padding: 40px;
  text-align: center;
  background-color: brown;
}

.card {
  background-color: white;
  max-width: 400px;
  padding: 40px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px gray;
  transition: transform 0.3s, background-color 0.3s ease
}

.card:hover {
  background-color: khaki;
  transform: scale(1.1);
}

h1::before {
  content: "🥳 ";
}

h1::after {
  content: " 🥳";
}

.message {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.card-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.card-links a {
  text-decoration: none;
  font-size: 1em;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  background-color: midnightblue;
  transition: background-color 0.3s ease;
}

.card-links a:hover {
  background-color: orangered;
}

.card-links a:active {
  background-color: midnightblue;
}

/* User Editable Region */
.card-links a:focus{
  outline: 2px solid yellow;
}
/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15

Challenge Information:

Design a Greeting Card - Step 23

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-greeting-card/67333b1d5f4a7340a121973a.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @RxL

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

Happy coding

I am having the same problem on this step. I have the same code and it keeps giving me the same error. I tried restarting the step, refreshing the page and repasting, private mode, different browsers, and I have no extensions downloaded. I have completed the other steps and I even pasted the answer from step 24 and It still doesn’t work.

styles.css:

body {

font-family: Arial, sans-serif;

padding: 40px;

text-align: center;

background-color: brown;

}

.card {

background-color: white;

max-width: 400px;

padding: 40px;

margin: 0 auto;

border-radius: 10px;

box-shadow: 0 4px 8px gray;

transition: transform 0.3s, background-color 0.3s ease

}

.card:hover {

background-color: khaki;

transform: scale(1.1);

}

h1::before {

content: ":partying_face: ";

}

h1::after {

content: " :partying_face:";

}

.message {

font-size: 1.2em;

margin-bottom: 20px;

}

.card-links {

margin-top: 20px;

display: flex;

justify-content: space-around;

}

.card-links a {

text-decoration: none;

font-size: 1em;

padding: 10px 20px;

border-radius: 5px;

color: white;

background-color: midnightblue;

transition: background-color 0.3s ease;

}

.card-links a:hover {

background-color: orangered;

}

.card-links a:active {

background-color: midnightblue;

}

.card-links a:focus{

outline: 2px solid yellow;

}

hi @isasanch please create your own topic

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Thank you for the response:

  1. Tried restart step and refreshed.

  2. Attempted incognito/ private mode

  3. don’t have any extension nor Dark mode on and browser zoom is set to 100%

  4. Was using safari and tried chrome, same results.

Unfortunately none of the solutions worked. What would be the best next step?

you can move to the next step and leave this step be