Go to Post All this is sounding like gobbly-de-gook but it is important to understand this gobbly-de-gook. - ebarker [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-07-2004, 02:14
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Stretch a picture to fill up the whole background of a webpage?

Is there any code (preferably html) that would allow the background image of a webpage to fully take up the page no matter what resolution you view it at??

I have an image sized pretty good for the page size, but on some resolutions I see it is too small and it tiles the image.

Is there any way to stretch the image (larger or smaller) to the actual html page size?

I basically have a picture that is meant too look like a sheet of paper with an image at the bottom, and it tiles itself and starts the new "piece" of paper again.

I want this page to look like it was written on the piece of paper image and have it be contained within the page.

Any help would be greatly appreciated.

Thanks in advance.
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #2   Spotlight this post!  
Unread 28-07-2004, 02:19
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Stretch a picture to fill up the whole background of a webpage?

try <img src="image.png" width="100%" height="100%"></img>.
  #3   Spotlight this post!  
Unread 28-07-2004, 03:19
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Stretch a picture to fill up the whole background of a webpage?

That just puts the image at the top of the page.. arghh.. lol

Umm.. I have it set up originally as
Code:
 <body background="Image X.gif">
Anyway to modify that as it is and make it width 100% and height 100%?
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #4   Spotlight this post!  
Unread 28-07-2004, 04:18
K.Shaw's Avatar
K.Shaw K.Shaw is offline
The Zoomin' Human
AKA: Shaw 1, kevshaw, little shaw
FRC #0237 (Sie-H²O-Bots (See-Ho-Bots), FLL #3954 (Swift Eagles))
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Watertown,CT
Posts: 318
K.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant future
Send a message via ICQ to K.Shaw Send a message via AIM to K.Shaw Send a message via MSN to K.Shaw Send a message via Yahoo to K.Shaw
Re: Stretch a picture to fill up the whole background of a webpage?

try..... <body background="Image X.gif" width="100%" height="100%">
__________________
2005 Bash @ the Beach Winners -Thanks Team 1511 and Team 181
2005 NJ Regional Finalist -Thanks again to 56 and 303
2005 Radioshack Innovative Control Award-NJ
2005 FLR Semi-Finalists
2005 Radioshack Innovative Control Award-FLR

2004 Archimedes Divisional Semifinalists
2004 NJ Regional Winners. -Thanks Team 56 and Team 303!
2004 NJ G.M. Industrial Design Award Winner
2004 UTC Motorola Quality Award Winner
  #5   Spotlight this post!  
Unread 28-07-2004, 04:25
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by K.Shaw
try..... <body background="Image X.gif" width="100%" height="100%">
nope... And I even tried closing it with an extra </body> tag too...
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #6   Spotlight this post!  
Unread 28-07-2004, 04:49
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Stretch a picture to fill up the whole background of a webpage?

Ok, I found out how to do it..
I'll post it here for future reference in case anyone needs it.

I had to use CSS Style sheets..

Code:
<style>
body {
background-color: #ffffff;
background-image: url("Image X");
background-repeat: no-repeat;
background-position: center top;
background-attachment: scroll }
</style>
That wasn't so hard.. lol
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #7   Spotlight this post!  
Unread 28-07-2004, 14:42
robot180's Avatar
robot180 robot180 is offline
Webmaster, spamrobotics.com
AKA: Jon
FRC #0180 (S.P.A.M.)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Stuart, FL
Posts: 414
robot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to all
Send a message via AIM to robot180
Re: Stretch a picture to fill up the whole background of a webpage?

I think that only puts the picture in as the size of the image. I don't think you can stetch it out to fill the page. The image has to be the size of the screen. For example, try viewing the page in a different resolution.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
  #8   Spotlight this post!  
Unread 28-07-2004, 16:33
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by robot180
I think that only puts the picture in as the size of the image. I don't think you can stetch it out to fill the page. The image has to be the size of the screen. For example, try viewing the page in a different resolution.
Thank you for raining on my parade... sigh.. Back to the drawing board. It looks the worst on 800X600, Best on 1024X768, Ok on 1280X1024 and really small compared to the page on 1600X1200
ughh...

Oh well.. I think I'll just add a "This website is best viewed at 1024X768" note to the pages..

Who surfs the web at 800X600 anyways?
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #9   Spotlight this post!  
Unread 29-07-2004, 04:03
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by Elgin Clock
Thank you for raining on my parade... sigh.. Back to the drawing board. It looks the worst on 800X600, Best on 1024X768, Ok on 1280X1024 and really small compared to the page on 1600X1200
ughh...

Oh well.. I think I'll just add a "This website is best viewed at 1024X768" note to the pages..

Who surfs the web at 800X600 anyways?
I rarely have my web browser maximized. My screen res is 1152x864.
  #10   Spotlight this post!  
Unread 29-07-2004, 14:40
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by Elgin Clock
Oh well.. I think I'll just add a "This website is best viewed at 1024X768" note to the pages..

Who surfs the web at 800X600 anyways?
Please tell me you're kidding. You are... right? That's quite possibly the worst thing you could do. While it's generally bad practice to do this, I'm guessing the effect you want could be acheived in Javascript, which detects browser screen sizes with ease. The hard part would be printing dimensions to a background-image; it can't be done, but a half-solution would be to have a bunch of image files pre-stretched to certain screen sizes and changing the link to the background image URI based on resolutions through Javascript.

Are you trying to make the image static as the page scrolls? because I can show you how to do that. Anyway, if you link to the page, I'm sure something could be done.
__________________

  #11   Spotlight this post!  
Unread 29-07-2004, 14:55
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by jonathan lall
Please tell me you're kidding. You are... right? That's quite possibly the worst thing you could do. While it's generally bad practice to do this, I'm guessing the effect you want could be acheived in Javascript, which detects browser screen sizes with ease. The hard part would be printing dimensions to a background-image; it can't be done, but a half-solution would be to have a bunch of image files pre-stretched to certain screen sizes and changing the link to the background image URI based on resolutions through Javascript.
Nope.. not kidding. The look I want is only acievable by having the image stay the same size on all pages - or fit to page. I can't believe there is no way to do this. I guess I'll just have to make a way. I guess I can break it up. But that would require more knowledge than I have in HTML design, or a wysiwyg editor to lay out the images, which I refuse to use.
Notepad and text editor all the way. lol

Quote:
Originally Posted by jonathan lall
Are you trying to make the image static as the page scrolls? because I can show you how to do that. Anyway, if you link to the page, I'm sure something could be done.
No not at all. I found out how to do that though. Same CSS style sheet I tried but different attributes.

As for a page link, If I ever get it up and running on a server like I was supposed to do last week, I will gladly link it and show you what I mean.

Right now it is just in the development stages so far.
(Not a team website either - personal one.)
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #12   Spotlight this post!  
Unread 30-07-2004, 23:20
robot180's Avatar
robot180 robot180 is offline
Webmaster, spamrobotics.com
AKA: Jon
FRC #0180 (S.P.A.M.)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Stuart, FL
Posts: 414
robot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to all
Send a message via AIM to robot180
Re: Stretch a picture to fill up the whole background of a webpage?

This might take a lot of work, but I am sure you can do it using CSS to move the image (in an img tag) so that it is behind the page contents with a lower z-index. This doesn't sound like a great idea, but it might work. Then you can streth out the img tag to the width of the screen (100%). I might be missing something though.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
  #13   Spotlight this post!  
Unread 30-07-2004, 23:29
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by robot180
This might take a lot of work, but I am sure you can do it using CSS to move the image (in an img tag) so that it is behind the page contents with a lower z-index. This doesn't sound like a great idea, but it might work. Then you can streth out the img tag to the width of the screen (100%). I might be missing something though.
I was thinking that. Theoretically it's a promising idea, but z-index is really a joke in some browsers. It works differently in all of them, so that path is one of despair, IMO.
__________________

  #14   Spotlight this post!  
Unread 30-07-2004, 23:49
rowe rowe is offline
Eric Rowe
FRC #1097 (Site 3 Engineering)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Sacramento, CA
Posts: 133
rowe has a spectacular aura aboutrowe has a spectacular aura about
Send a message via AIM to rowe Send a message via MSN to rowe Send a message via Yahoo to rowe
Re: Stretch a picture to fill up the whole background of a webpage?

Have you tried using frames or tables. You could have more possibilities come from this including pages where the paper would dynamically resize to the browser without using any code other than HTML. This is how I would set it up: divide the page into 9 sections either in tables cells or frames, then have the corners be the corners of the paper, have the top section be the top of the paper and make both the frame/table cell and the picture the same height. Do the same for the sides and the bottom. The trick would be to align the right cells with the right and the left wit the left, etc. I have not coded in a while so I'm not sure of the exact method but I'm sure it's possible, if not with straight HTML, then with CSS or javascript.
__________________
Eric Rowe | Alumn
Team 1097 | Site 3 Engineering
2005 Silicon Valley Regional Finalists
2005 Silicon Valley Regional Sportsmanship Award
2005 Sacramento Regional Finalists
2005 Sacramento Regional Sportsmanship Award
2004 Silicon Valley Regional Sportsmanship Award
2004 Sacramento Regional Visualization Award
2004 Sacramento Regional Engineering Inspiration Award
  #15   Spotlight this post!  
Unread 31-07-2004, 00:44
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Stretch a picture to fill up the whole background of a webpage?

Quote:
Originally Posted by Elgin Clock
Who surfs the web at 800X600 anyways?
*raises hand* 800x600 rocks for anything other than gaming.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
Closed Thread


Thread Tools
Display Modes 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi