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:
#main-headings { color :green; margin: 0 auto; text-align: center; line-height: 80%; }
and it looks like this:
Why when i add ” width:100px ;” to the code, it becomes
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.