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.

Image Resolution for Html Background

2 posters

Go down

Image Resolution for Html Background Empty Image Resolution for Html Background

Post by GuaranaRT 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!!!!
avatar
GuaranaRT
Forumember

Posts : 54
Reputation : 0
Language : English

Back to top Go down

Image Resolution for Html Background Empty Re: Image Resolution for Html Background

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

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


Back to top Go down

Image Resolution for Html Background Empty Re: Image Resolution for Html Background

Post by GuaranaRT 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?
avatar
GuaranaRT
Forumember

Posts : 54
Reputation : 0
Language : English

Back to top Go down

Image Resolution for Html Background Empty Re: Image Resolution for Html Background

Post by kirk 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
kirk
Forumaster

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

Back to top Go down

Back to top


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