Requesting a code for a HTML background. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Requesting a code for a HTML background.

    Spottedleaf
    Spottedleaf
    Forumember


    Posts : 97
    Reputation : 2
    Language : english

    In progress Requesting a code for a HTML background.

    Post by Spottedleaf 16/8/2014, 22:30

    Can I get the html background image code please?
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    In progress Re: Requesting a code for a HTML background.

    Post by Derri 16/8/2014, 22:39

    Hi,

    I've edited your topic title to include 'For a HTML background because our search engine works on topic titles only Very Happy
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Requesting a code for a HTML background.

    Post by Ange Tuteur 17/8/2014, 00:09

    Hello Spottedleaf,

    To add a background to a page you must style your HTML elements with CSS. For example :
    Add the code below to Display > Colors > CSS stylesheet
    Code:
    body { background:url(/myimage.gif) repeat }

    Replace /myimage.gif by the URL of your image.
    Spottedleaf
    Spottedleaf
    Forumember


    Posts : 97
    Reputation : 2
    Language : english

    In progress Re: Requesting a code for a HTML background.

    Post by Spottedleaf 17/8/2014, 00:40

    I added it but I don't see any changes.
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    In progress Re: Requesting a code for a HTML background.

    Post by Derri 17/8/2014, 01:32

    Spottedleaf wrote:I added it but I don't see any changes.

    You did replace /myimage.gif with your own image url, correct?
    Spottedleaf
    Spottedleaf
    Forumember


    Posts : 97
    Reputation : 2
    Language : english

    In progress Re: Requesting a code for a HTML background.

    Post by Spottedleaf 17/8/2014, 03:21

    It worked but I wanted a code that goes in the html section. Not CSS.
    avatar
    Fierce Star
    Forumember


    Male Posts : 110
    Reputation : 17
    Language : English
    Location : United States

    In progress Re: Requesting a code for a HTML background.

    Post by Fierce Star 17/8/2014, 04:26

    Spottedleaf wrote:It worked but I wanted a code that goes in the html section. Not CSS.
    Try adding
    Code:
    style="background:url('/myimage.gif');"
    before the > of the <body> tag.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Requesting a code for a HTML background.

    Post by Ange Tuteur 17/8/2014, 06:03

    Is this for an HTML page ? If so you'll have to create an inline stylesheet within your <head> tag.

    Ex :
    Code:
    <head>
      <style type="text/css">
        body { background:url(/myimage.gif) repeat }
      </style>
    </head>

    or you can write it in the <body> tag's style attribute :
    Code:
    <body style="background:url(/myimage.gif) repeat;">
      <!-- CHILD ELEMENTS -->
    </body>