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.

Requesting a code for a HTML background.

4 posters

Go down

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?
Spottedleaf
Spottedleaf
Forumember

Posts : 97
Reputation : 2
Language : english

http://primes-and-shadows.forumotion.com/

Back to top Go down

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
Derri
Derri
Helper
Helper

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

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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.
Spottedleaf
Spottedleaf
Forumember

Posts : 97
Reputation : 2
Language : english

http://primes-and-shadows.forumotion.com/

Back to top Go down

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?
Derri
Derri
Helper
Helper

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

Back to top Go down

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.
Spottedleaf
Spottedleaf
Forumember

Posts : 97
Reputation : 2
Language : english

http://primes-and-shadows.forumotion.com/

Back to top Go down

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.
avatar
Fierce Star
Forumember

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

http://inactivesite.onlyhelpwithothersnow.com

Back to top Go down

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>
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum