The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › please help me understand width
This is my CSS:
margin: 0 auto;
and it looks like this:
Why when i add ” width:100px ;” to the code,
Yesyou changed the size width of the image so its showing the change of image. If need to make image size should in website size. Then use in percentages instead of pixels.
if you not get can you provide your link
If you can provide a working example of the issue in a CodePen demo, it will be easier for us to see the problem and offer an answer.