Adjust width of card using the width element

Tell us what’s happening:
Describe your issue in detail here.
I already know how to use the width element but for some reason, it’s not working. I’ve gone through the hints but I still seem to be stuck on this challenge. Using the width element in CSS didn’t work even though I did the same thing in my editor as the hints said. Thank you so much :slight_smile:

  **Your code so far**

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

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14150.87.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.124 Safari/537.36

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

Link to the challenge:

You have a number with no units.

Hi, tanishanabi2020:
Do you see how in your fullCard class there are values for border, border-radius, margin and padding? Those values have the px unit, which your value for width is lacking.
I hope this helps, have a nice day.

1 Like

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