Help me with setting image's width

.smaller-image { width: 100px }

which topic in curriculum is that

@idayatademefun2003, size your images

@blessedonyi you must put a ; after width: 100px

@blessedonyi do you added the class smaller-image to your img?

u should put the class after ur src and also use a double quote e.g <img src = ‘url’ class = “smaller-image”

Please use `` when you write a code in the forum.

is there any problem in using a double quote

no. I mean if you want to write a code in forum use ``.

ok, i will take note
do u know how to make people view ur project on codepen

copy the url and paste on forum…

Ex.:

then use Ctrl + v

wow,thank u,but pls i dont understand what u tapped to get those option,pls can u enlighten me,ur project is nice

Right-mouse click on project, select copy link adress, go on forum, and again Right-mouse click and select paste (or Ctrl+v)

ok thank u so so much

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

nothing is working. it still saying my img element should have class even after this code: img class=“smaller-image” src="https://www.example.com/pictures/>

Hello @blessedonyi,

Can you give us the link of the challenge or your project for that we can check what is happening? It is difficult to understand without it. If it is a challenge, the URL of your src attribute look really different from what freeCodeCamp is asking to use usually. If it is about a project, it would be great that we can have the error message in the logs.

@LucLH, Its a challenge, I wasn’t given any URL. I was only told to create an image class called smaller-image and resize it to 100px. I did it like this:

.smaller-image { width: 100px }

It did not work then I had to use src to see if it will work