rurtubia
5/31/2015 - 6:39 PM

Changing the size of an image with CSS, adding borders to it and changing its style and border-radius

Changing the size of an image with CSS, adding borders to it and changing its style and border-radius

<style>
  .rounded-border {
    border-radius: 50px;
  }
</style>

<img  class='rounded-border' 
      src='https://bit.ly/fcc-kittens'/>
<style>
  .smaller-image{
    width:100;  
  }
</style>

<img src='https://bit.ly/fcc-kittens' class="smaller-image"/>
<img
    src='https://bit.ly/fcc-kittens'
    alt="A cute orange cat lying onits back"/>
<style>
  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 25px;
  }
</style>

<img class='smaller-image thick-green-border' src='https://bit.ly/fcc-kittens'/>
<style>
  .thick-border {
    border-width: 10px;
    border-style: solid;
  }
</style>

<img class='thick-border' 
     src='https://bit.ly/fcc-kittens'/>