Files
freeCodeCamp/guide/english/certifications/responsive-web-design/basic-css/size-your-images/index.md
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

358 B

title
title
Size Your Images

Size Your Images


Problem Explanation

For sizing your images, first create your class in your style tag.

An example:

<style>
  .fixed-image {
    width: 500px;
    height: auto;
  }

You can then add the class to your image:

  <img class="fixed-image" src="http://www.example.com/picture"/>