1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What am I doing wrong with this CSS?

Discussion in 'HTML & Website Design' started by cowsgonemadd3, Jun 5, 2018.

  1. #1
    I am using a code from codepen and I have managed to make it work with my website. I am no coding expert so this is quite exciting for me.

    I am trying to use these content blocks on my website and I am wanting to add an image to the background of the content block. Right now the code is set up as a color background.
    SEMrush
    Here is the original code: https://codepen.io/ckor/pen/lBnxh

    I added this to the code to add a background image I uploaded to a online file host.
    background-image: url('https://s15.postimg.cc/r8cb2jiu3/banner_test.jpg');


    Then I get this error from the website when trying it:
    Invalid CSS after "": expected selector, was "!*"

    Sites are made up of blocks and I just want to create nice looking responsive blocks. This codepen code is perfect if only I can get images to run in the background to go along with the text.
     
    cowsgonemadd3, Jun 5, 2018 IP
    SEMrush
  2. cowsgonemadd3

    cowsgonemadd3 Well-Known Member

    Messages:
    1,246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    155
    #2
    It has been fixed! Thanks
     
    cowsgonemadd3, Jun 5, 2018 IP
  3. mmerlinn

    mmerlinn Notable Member

    Messages:
    1,741
    Likes Received:
    198
    Best Answers:
    5
    Trophy Points:
    240
    #3
    Does not look fixed to me. Looks the same as what you posted. So, how exactly did you fix it?
     
    mmerlinn, Jun 9, 2018 IP
  4. Cameron Fillers

    Cameron Fillers Member

    Messages:
    33
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #4
    Based on the fact that the OP says that the situation has been resolved, but cowsgonemadd3 said that there are still issues, that caching is enabled for anonymous users, but not for logged in users. As such, it sounds like the minimize scripts for css need to be rebuilt so that anonymous users can view the changes.
     
    Cameron Fillers, Jun 18, 2018 IP