Requesting a code for a HTML background.
4 posters
Page 1 of 1
Re: Requesting a code for a HTML background.
Hi,
I've edited your topic title to include 'For a HTML background because our search engine works on topic titles only
I've edited your topic title to include 'For a HTML background because our search engine works on topic titles only
Derri- Helper
- Posts : 8711
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: Requesting a code for a HTML background.
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
Replace /myimage.gif by the URL of your image.
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.
Re: Requesting a code for a HTML background.
Spottedleaf wrote:I added it but I don't see any changes.
You did replace /myimage.gif with your own image url, correct?
Derri- Helper
- Posts : 8711
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: Requesting a code for a HTML background.
It worked but I wanted a code that goes in the html section. Not CSS.
Re: Requesting a code for a HTML background.
Try addingSpottedleaf wrote:It worked but I wanted a code that goes in the html section. Not CSS.
- Code:
style="background:url('/myimage.gif');"
Re: Requesting a code for a HTML background.
Is this for an HTML page ? If so you'll have to create an inline stylesheet within your <head> tag.
Ex :
or you can write it in the <body> tag's style attribute :
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>
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum