Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > can you stretch a background image?

Reply
Thread Tools

can you stretch a background image?

 
 
John
Guest
Posts: n/a
 
      10-06-2006
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


 
Reply With Quote
 
 
 
 
richard
Guest
Posts: n/a
 
      10-06-2006

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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%


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stretch the background image to fill AAaron123 ASP .Net 2 11-03-2008 12:14 AM
How to stretch a background image? Bob Altman ASP .Net 4 08-26-2008 05:25 PM
Stretch a <TABLE> background image to fill the entire cell Water Cooler v2 HTML 3 07-12-2006 10:48 PM
Help : How do I make the background image stretch to fit the table cell? TAM Javascript 1 04-30-2004 06:52 PM



Advertisments