can you stretch a background image?

J

John

Hi

I have the following image which will stretch at the bottom of the page.

<img src="castle.jpg" width="100%">

However what I really want is an image that I can print over - ie the image
is background.

The following is in CSS

body { background: white url(castle.jpg) no-repeat bottom centre; }

but there is no "width=100%" in CSS.

Is there a way in pure HTML?

Regards
John
 
R

richard

John said:
Hi

I have the following image which will stretch at the bottom of the page.

<img src="castle.jpg" width="100%">

However what I really want is an image that I can print over - ie the
image is background.

The following is in CSS

body { background: white url(castle.jpg) no-repeat bottom centre; }

but there is no "width=100%" in CSS.

Is there a way in pure HTML?

Regards
John

If I understand correctly, you would now use the z-index. Assigning it a
value of -1.
http://1-small-world.com/index2.html
Something like that?
BTW, there is no = in CSS, it is : .

height:50px; width:100%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top