The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Requesting a code for a HTML background.

View previous topic View next topic Go down

In progress Requesting a code for a HTML background.

Post by Spottedleaf on Sat Aug 16, 2014 10:30 pm

Can I get the html background image code please?

Spottedleaf
Forumember

Posts : 96
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 on Sat Aug 16, 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


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
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 on Sun Aug 17, 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

Post by Spottedleaf on Sun Aug 17, 2014 12:40 am

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

Spottedleaf
Forumember

Posts : 96
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 on Sun Aug 17, 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?


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
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 on Sun Aug 17, 2014 3:21 am

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

Spottedleaf
Forumember

Posts : 96
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 on Sun Aug 17, 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.

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 on Sun Aug 17, 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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