Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background image not replicated 1

Status
Not open for further replies.

kaul1jos

Technical User
Jan 5, 2001
76
0
0
NL
Please help,

I have an backgroud image with a few people, I would like to use that image as an image. But only once displayed in a frame. Is this possible en how can I do this?
 
Hi,

I'm not really sure where you are going to, mayby you should give more details. But if you want to display you're image as an image you use:

<img src=&quot;picture.gif&quot; height=&quot;400&quot; width=&quot;400&quot;>

So,

<Mr. Developer/>
 
Hi,

Thanks for your answer, but thats not i wanted.

I want an image as background and used:
<body background=&quot;image.png&quot;> but the image is to small for the frame so the browser will replicate the image as much as needed to fill the frame. If i blow up the image, as big as the frame the image will be over 1Mb.

Greetings

Jos
 
Put this in your <HEAD> -

<style>
<!--
body { background: url(yourimage.jpg) no-repeat; }
-->
</style>

That should do it.
 
Thanks for your answer, it is usefull.

Is it with this statement also possible to give the height and width for the image?

Greetings

Jos
 
Not with this particular statement, no. In fact, I dont know a way to do this with a background-image. Sorry. :(
 
Modify the size of your image in an image manipulation program (like photoshop) and then use it :)


Regards,
The Learner
`~*,*~`~*,*~`~*,*~`~*,*~`~*,*~`
In my beginning is my end...
~*,*~`~*,*~`~*,*~`~*,*~`~*,*~`​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top