Forums

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 topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #282016
    Tost
    Participant

    This is my CSS:

    #main-headings {
    color :green;
    margin: 0 auto;
    text-align: center;
    line-height: 80%;
    }

    and it looks like this:
    image|605x177

    Why when i add ” width:100px ;” to the code,
    it becomes

    image|690x250

    #282176
    LearnTheNew
    Participant

    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

    #282178
    Beverleyh
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.