Im doing the exercise properly and it marks it as wrong. Please help

Tell us what’s happening:

Your code so far


<style>
h4 {
  text-align: center;
}
p {
  text-align: justify;
}
.links {
  margin-right: 20px;
  text-align: left;
}
.fullCard {
  width: 245px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 5px;
  padding: 4px;
}
.cardContent {
  padding: 10px;
}
</style>
<div class="fullCard">
<div class="cardContent">
  <div class="cardText">
    <h4>Google</h4>
    <p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p>
  </div>
  <div class="cardLinks">
    <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a>
    <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>
  </div>
</div>
</div>

Your browser information:

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

Challenge: Adjust the Width of an Element Using the width Property

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/adjust-the-width-of-an-element-using-the-width-property

Your code is passing for me. Are you zoomed in/out in the browser?


This may be a bug that we can fix. If you have the time to help I would really appreciate it.

  1. In the output window, right-click the card element and select “Inspect” from the context menu. On the Elements tab that has just opened make sure you select (click on) the <div class="fullCard"> element.

  2. Switch to the console tab.

  3. Paste the following into the console window.getComputedStyle($0).width and press Enter. Now paste in $0.offsetWidth and press Enter.

  4. Report back the two numbers that were printed to the console.

Don’t worry if you feel it is a little technical. Just ask if you need any help or clarification with the steps given.