Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I’m trying to put a background in each of my list items doesn’t seem to be working…

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40236
    djrolstad
    Participant

    This is the site. I’m trying to put the background which is in images/cloud.png
    I check chrome dev tool and shows that it recognizes the image.
    http://www.meetlawngirl.com/testing/

    #111602
    Senff
    Participant

    It’s because the image is way too large for that small LI/A area; the anchors in the LI’s are only 23 pixels high, but the image you’re using is much larger than that.

    You could try and add this to the #menu a anchor:

    background-size: 100% 100%;

    #111603
    djrolstad
    Participant

    Thank you that makes sense, I did try setting a height and width but that didn’t work.

    #111650
    djrolstad
    Participant

    The clouds gets cut off (on the left side) when I do this. I’m trying to put the text in the center of the cloud image background.

    #111651
    Paulie_D
    Member

    I can’t find the cloud image in your images folder…have you removed it?

    #111656
    djrolstad
    Participant

    Found out actually it was a padding and margin issue.

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