Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Background Image

    Help wanted · · · – – – · · ·
    moz background css webkit
    2
    3
    4019
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Richard Pack
      Richard Pack last edited by

      I’m fairly new to HTML programming and I was looking up the best way to include a background image and make it fill the whole page instead of repeating. One of the tutorials I found had a few lines of code I hadn’t seen before. The site in question recommended:
      background-image: url(“Images/Background.gif”);
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
      I’m curious what the middle three lines of code accomplish. So far as I can tell, at least in my case, the end result doesn’t seem to change whether those lines of code are present or not. Are they necessary, or simply the preference of the individual who wrote the tutorial?

      1 Reply Last reply Reply Quote -1
      • MAPJe71
        MAPJe71 last edited by

        You might have more luck on getting an answer in a forum dedicated to HTML and CSS.

        1 Reply Last reply Reply Quote 2
        • Richard Pack
          Richard Pack last edited by

          That is an excellent point, my apologies.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors