Community
    • Login

    Background Image

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    mozbackgroundcsswebkit
    3 Posts 2 Posters 4.8k Views 2 Watching
    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 PackR Offline
      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
      • MAPJe71M Offline
        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 PackR Offline
          Richard Pack
          last edited by

          That is an excellent point, my apologies.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors