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.

Image Resolution for Html Background

View previous topic View next topic Go down

Image Resolution for Html Background

Post by GuaranaRT on February 20th 2012, 5:34 pm

I want to create an html page and to put to the background an image.

What is the proper resolution for the image to fit EXACTLY in the page, because, i tried many times and the image was tiled or too big!!!!

GuaranaRT
Forumember

Posts : 54
Reputation : 0
Language : English

Back to top Go down

Re: Image Resolution for Html Background

Post by Guest on February 20th 2012, 5:49 pm

Add this:
Code:
<style>
body{
background-image: url(IMAGE_LINK);
}
</style>

Guest
Guest


Back to top Go down

Re: Image Resolution for Html Background

Post by GuaranaRT on February 20th 2012, 5:53 pm

It is still like that

http://www.harryworld.org/h133-page

How can i put it exactly on window?

GuaranaRT
Forumember

Posts : 54
Reputation : 0
Language : English

Back to top Go down

Re: Image Resolution for Html Background

Post by kirk on February 20th 2012, 10:31 pm

@GuaranaRT wrote:It is still like that

http://www.harryworld.org/h133-page

How can i put it exactly on window?

Put what on a window where?
I don't see any background image it's a black background.
So i am not sure what image you mean.

here is another code from rorno you can try.
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="content-type" content="text/html;charset=utf-8" /><meta name="author" content="rono"><meta name="description" content="fsonline mag"></head><body style="background:url(YOUR DIRECT IMAGE LINK HERE);background-attachment:fixed;"bgcolor="#" text="#" link="#" vlink="#" alink="#"><link rel="shortcut icon" href="Your cool Favicon link here"></body></html>

you can put your page title in between the title tags, change from fixed image or scroll, or add any colors you want for links etc by adding the color number after the # number sign
"# number here" text="#number here" link="#number here" vlink="#number here" alink="#number here"

I removed the color so it would just be default colors, So if you have a dark back ground be sure to at least change the text color to something you can see.
Other then that please explain more.

Coddy wrote:Add this:
Code:
<style>
body{
background-image: url(IMAGE_LINK);
}
</style>

this is always a good way to Smile
I don't have time to check right now but am pretty sure if you use style tags like this,
the code would have to be added in the head section of the html? i think??

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

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