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

Tell us what’s happening:

I can’t complete this challenge. After adding width:245px;
I got this message
‘’ **// running tests **
Your code should change the width
property of the card to 245 pixels by using the
fullCardclass selector.
// tests completed’’

html

<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/78.0.3904.108 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

I am using Chrome browser and the test passed just fine, what browser are you using?

I use Chrome browser

Try to reset the code. That should help…

I did it few times. It doesn`t help.

Add some space after colon,I had some issues with other challenges with spaces.

Added some space after colon, it doesn`t help too

Did you have similar issues with other challenges? Maybe you should just update your version of chrome…

No, just with this one.

Just did this chalange from my phone, after that I finally finished this :partying_face:

1 Like

Glad you made it! Happy coding :smile: