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.

Background Image

Discussion in 'HTML & Website Design' started by rocky7597, Mar 10, 2016.

  1. #1
    Hello All!

    I'm here with a problem! I'm working on a bootstrap theme with no background image. I want to put a single one, but unable to do that. I implement "html { background: url (image url);}". But nothing is displayed.
     
    Solved! View solution.
    rocky7597, Mar 10, 2016 IP
  2. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #2
    I don't know anything about bootstrap, but check if the path to the image is correct. Also check if something is z-indexed above the background image.
     
    Blizzardofozz, Mar 10, 2016 IP
  3. #3
    If you have written it like you have above, that won't work. No space between url and the containing ().

    The correct syntax is background: url('link_to_file');
     
    PoPSiCLe, Mar 10, 2016 IP
  4. rocky7597

    rocky7597 Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    Thanks for your kind help! @PoPSiCLe
     
    rocky7597, Mar 10, 2016 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #5
    It probably also shouldn't go on HTML as that's a non-render element in some browsers. Apart from setting the height for body, you are best off leaving the HTML element alone... and of course anything set on body will overlap html anyways so unless that's the effect you're going for...
     
    deathshadow, Mar 12, 2016 IP
  6. botsky

    botsky Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    background: url(link);
     
    botsky, Mar 14, 2016 IP