Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-08-2002, 07:08 PM   PM User | #1
Sk8er9547
New Coder

 
Join Date: Jun 2002
Location: Colorado
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Sk8er9547 is an unknown quantity at this point
Background Image in CSS

Hey, i was wondering how i would go about stretching a background image across the entire page...im sure the solution is very simple, but any help is greatly needed! Thanks a lot everyone.
__________________
-Sk8er9547
Sk8er9547 is offline   Reply With Quote
Old 07-08-2002, 09:06 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
I'm not sure if you can do this... but, try it like this (I'm just guessing here

<style>
BODY {background-properties: stretch;}
</style>

~Quack
QuackHead is offline   Reply With Quote
Old 07-08-2002, 09:17 PM   PM User | #3
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
I just checked the CSS/CSS2 specifications on http://www.w3schools.com and there is no way to do what you want to do.

You could however have a layer that sits below all other layers which stretches the complete page - put an image in that layer and have the image stretch the layer.

You'd have to use all layers though..

~Quack
QuackHead is offline   Reply With Quote
Old 07-08-2002, 09:31 PM   PM User | #4
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 853
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
Use a layer with the image size set to !00%, Set the layer positioning to absolute and stick the code as the first thing after the <body> tag. Should do it.
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline   Reply With Quote
Old 07-08-2002, 10:02 PM   PM User | #5
edgework
New Coder

 
Join Date: Jun 2002
Location: NYC
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
edgework is an unknown quantity at this point
Maybe I don't fully understand what it is you're trying to do... do you just want to take a normal image and have it appear in your page stretched to fill out the width? Setting WIDTH="100%" in your <img> tag will do that, and the image will still fit to the screen if you resize it. Setting a fixed value will retain whatever distortion you apply when the screen is resized. In other words, if the image is 40 px wide, and you define width as 300, you will get a seriously stretched image. Is that what you mean, or do you mean making an animation of the image Resizing?
edgework is offline   Reply With Quote
Old 07-09-2002, 12:05 AM   PM User | #6
La Gal
New Coder

 
Join Date: Jun 2002
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
La Gal is an unknown quantity at this point
Another option

Quiet Storm’s code (on AndyB’s server):

http://www.halfadot.com/freehelp/qs-demo.html

The script was written for NS4 and IE4, but I’m viewing it in IE6 with no problems. You prolly need to add NS6 compatibility to the script.
La Gal is offline   Reply With Quote
Old 07-09-2002, 01:43 AM   PM User | #7
Quiet Storm
Regular Coder

 
Join Date: Jun 2002
Location: Beyond Lament
Posts: 424
Thanks: 0
Thanked 0 Times in 0 Posts
Quiet Storm is an unknown quantity at this point
__________________
Quíet Storm Designs ~ Art is not what you see, but what you make others see.
· the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·
Quiet Storm is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:51 AM.


Advertisement
Log in to turn off these ads.