The Blog Market

  • Home
  • About
  • Resources Directory
  • Advertise With The Blog Market
  • Contact Us

How to Create Round Images Using CSS

December 29, 2014 by jennifer Leave a Comment

Making images round is the perfect way to add a little somethin’ to a blog design. Usually I use Photoshop, but it can also easily be done using CSS. This comes in handy if you don’t have Photoshop or if you change your mind a lot when it comes to image styles.

How to Create Round Images Using CSS | The Blog Market
If you want a completely round image, you’ll need to start with a square shaped photo.

watercolor-square
There are a couple different ways you can add your CSS codes. You can add it straight to your HTML tag which will look like this:

<img style=”border-radius:50%;” src=”http://yourimageurl.jpg”>

Another option is to add a class to your image, then add the CSS in your designated CSS editor. This is a good option if you need to edit the style of multiple elements. Here’s what that would look like:

<img class=”round-image” src=”http://yourimageurl.jpg”>

Then you would go into your CSS editor and add the following code:

.round-image {
border-radius: 50%;
}

For this tutorial, I used option #1 and added the CSS directly to my HTML image tag. Here is the result:

watercolor-square

You can also use the border-radius property to add subtle rounded edges to any image or element. Instead of border-radius:50%; you might try 10%, creating something like this:

watercolor-square
The border-radius property can be used on other elements too, not just images. It looks great when used with sidebars, date headers, and category labels. Let me know if you have any questions!

Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Easy Ways to Add Greenery to Your Workspace
  • How to use Pinterest board sections to get organized + stay inspired
  • Friday Favorites 05 | Terrazzo Trend
  • Best Creative Planners for 2020
  • 10 Journal Prompts for Creative Motivation

Recent Comments

    © 2018 The Blog Market · · BACK TO THE TOP