---
title: "Discussion on \"Setting Up Width of Images In CSS\" | Hashnode"
description: "Discussion on \"Setting Up Width of Images In CSS\". Originally published on adiati.com.\nHello Fellow Codenewbies 👋\nYou probably use px or em to set up the size of your image in CSS.Well, I did.\nBut there is a good practice that I learned recently on h"
url: "https://hashnode.com/posts/setting-up-width-of-images-in-css/5fcc37e7ef5f84019de796c5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting Up Width of Images In CSS](https://adiatiayu.hashnode.dev/setting-up-width-of-images-in-css?utm_source=hashnode&utm_medium=feed)

Originally published on adiati.com. Hello Fellow Codenewbies 👋 You probably use px or em to set up the size of your image in CSS.Well, I did. But there is a good practice that I learned recently on h

Dec 6, 2020 · 2 min read · adiatiayu.hashnode.dev  
Updated Sep 10  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#til](https://hashnode.com/tag/til)

## Written by

[Ayu Adiati](https://hashnode.com/@adiatiayu)

@adiatiayu · The Netherlands

  
[View profile](https://hashnode.com/@adiatiayu)

Ayu is a tech blogger, open source contributor &amp; maintainer, and tech community enthusiast based in the Netherlands. She loves photography and iced coffee!

## Responses 2

Markdown supported · ⌘↵ to post

[Mohammed Kabir Hussaini](https://hashnode.com/@lekandev)

[Dec 19, 2020](https://hashnode.com/posts/setting-up-width-of-images-in-css/5fcc37e7ef5f84019de796c5/comment/5fde774f1485f22e24b35430)

Awesome blog post, I definitely learnt something new

[Ayu Adiati](https://hashnode.com/@adiatiayu)

[Dec 19, 2020](https://hashnode.com/posts/setting-up-width-of-images-in-css/5fcc37e7ef5f84019de796c5/comment/5fde774f1485f22e24b35430#reply-5fde82b3b78ac62dff80d05b)

Thank you, Mohammed! I'm glad to hear that it could help you to learn something new 😃

[Favourite Jome](https://hashnode.com/@Favourite)

[Dec 8, 2020](https://hashnode.com/posts/setting-up-width-of-images-in-css/5fcc37e7ef5f84019de796c5/comment/5fcf24fbd639be20b2f021fd)

Great 👍, I also learnt about using percentages a while back

[Ayu Adiati](https://hashnode.com/@adiatiayu)

[Dec 8, 2020](https://hashnode.com/posts/setting-up-width-of-images-in-css/5fcc37e7ef5f84019de796c5/comment/5fcf24fbd639be20b2f021fd#reply-5fcf4fa1a38e1f208d80d222)

Thank you, Jome ☺
