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.
The forum of the forums
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 August 16th 2014, 10:30 pm

    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 August 16th 2014, 10:39 pm

    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 August 17th 2014, 12:09 am

    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 August 17th 2014, 12:40 am

    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 August 17th 2014, 1:32 am

    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 August 17th 2014, 3:21 am

    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 August 17th 2014, 4:26 am

    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 August 17th 2014, 6:03 am

    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>

      Current date/time is September 23rd 2024, 7:26 am