Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

css styles aren't applied on classes

I’m trying to create a social card (similar to Facebook). I don’t know why I can’t modify my classes inside CSS, but when I style them directly they work.

.card {
  display: inline-block;
  width: 600px;
  height: 145px;
}

.image-section {
  width: 130px;
  display: inline-block;
}

.image {
  width: 90px;
  vertical-align: middle;
  border-radius: 90px;
}

.name {
  font-size: 55px;
}
<div class=”card”>
  <div class=”image-section”>
    <img class=”image” src="images/photo.png">
  </div>
  <div class=”info-section”>
    <p class=”name”>Roland</p>
    <p class=”tag”>@roland00</p>
    <p class=”gender”>Male</p>
  </div>
  <div class=”button-section”>
    <button class=”btn” type=”button”>Follow</button>
  </div>
</div>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Now its applying you have mistake in your double inverted comma.

.card {
  display: inline-block;
  width: 600px;
  height: 145px;
}

.image-section {
  width: 130px;
  display: inline-block;
}

.image {
  width: 90px;
  vertical-align: middle;
  border-radius: 90px;
}

.name {
  font-size: 55px;
}
<div class="card">
  <div class="image-section">
    <img class="image" src="images/photo.png">
  </div>
  <div class="info-section">
    <p class="name">Roland</p>
    <p class="tag">@roland00</p>
    <p class="gender">Male</p>
  </div>
  <div class="button-section">
    <button class="btn" type="button">Follow</button>
  </div>
</div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading