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.

    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
  2. cowsgonemadd3

    cowsgonemadd3 Well-Known Member

    Likes Received:
    Best Answers:
    Trophy Points:
    It has been fixed! Thanks
    cowsgonemadd3, Jun 5, 2018 IP
  3. mmerlinn

    mmerlinn Notable Member

    Likes Received:
    Best Answers:
    Trophy Points:
    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