Go to Post Honor is doing the right thing when nobody is watching. - Daniel_LaFleur [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-02-2007, 22:01
Compnerd's Avatar
Compnerd Compnerd is offline
Self-Proclaimed Nerd
AKA: James H
FRC #1444 (Lightning Lancers)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2006
Location: St. Louis
Posts: 180
Compnerd has a spectacular aura aboutCompnerd has a spectacular aura about
JavaScript Code for automatic Resize??/

I am looking for a script, that will allow me to have the content automatically fit the browsers window, without having to scroll left and right..

Thanks,
Compnerd
__________________
James H. - Webmaster - Team 1444
http://www.first1444.com

If you need any website help send me a PM
  #2   Spotlight this post!  
Unread 28-02-2007, 22:25
Ricky2443's Avatar
Ricky2443 Ricky2443 is offline
Registered User
FRC #1029
 
Join Date: Feb 2006
Location: Miami
Posts: 24
Ricky2443 is on a distinguished road
Re: JavaScript Code for automatic Resize??/

its not a script its jus the way you set the hieght and width in the CSS that does that.
__________________
Ricky D.
Webmaster..."no Web GURU i like the sound of that"
  #3   Spotlight this post!  
Unread 28-02-2007, 22:30
Compnerd's Avatar
Compnerd Compnerd is offline
Self-Proclaimed Nerd
AKA: James H
FRC #1444 (Lightning Lancers)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2006
Location: St. Louis
Posts: 180
Compnerd has a spectacular aura aboutCompnerd has a spectacular aura about
Re: JavaScript Code for automatic Resize??/

I haven't learned CSS yet. That is one of my plans for this summer. Could you explain this?
__________________
James H. - Webmaster - Team 1444
http://www.first1444.com

If you need any website help send me a PM
  #4   Spotlight this post!  
Unread 28-02-2007, 22:57
Ricky2443's Avatar
Ricky2443 Ricky2443 is offline
Registered User
FRC #1029
 
Join Date: Feb 2006
Location: Miami
Posts: 24
Ricky2443 is on a distinguished road
Re: JavaScript Code for automatic Resize??/

wait wat do u mean do u want to resize pictures or the actual page. CSS is for the page jus set ur width to 100%
__________________
Ricky D.
Webmaster..."no Web GURU i like the sound of that"
  #5   Spotlight this post!  
Unread 28-02-2007, 23:36
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: JavaScript Code for automatic Resize??/

Auto-resizing the page width to be say 100% of the browser window is easy. The simpliest way of doing it is to use this code:
Code:
<style type="text/css">
body {
     width:100%;
}
</style>
However, you would be better to use an external CSS stylesheet. If you visit W3Schools.com's CSS section, you should find a bunch of easy to learn CSS tutorials that can help you.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #6   Spotlight this post!  
Unread 01-03-2007, 10:57
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: JavaScript Code for automatic Resize??/

We're ever the img tag is for the image put a style tag in it like this:

<img style="width: 100%;" src="picture.gif"/>
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/
  #7   Spotlight this post!  
Unread 01-03-2007, 12:41
SamC SamC is offline
.
AKA: Sam Couch
FRC #0103 (Cybersonics)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Philadelphia, PA
Posts: 583
SamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond repute
Re: JavaScript Code for automatic Resize??/

Quote:
Originally Posted by pheadxdll View Post
We're ever the img tag is for the image put a style tag in it like this:

<img style="width: 100%;" src="picture.gif"/>
Or in your CSS file add this,

Code:
img {
    width=100%;
}
That will make all images that big. ie. Whenever the <img .... /> tag is used.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Looking for javascript countdown script Compnerd Website Design/Showcase 3 24-02-2007 23:44
Resize picture in signature XLorm1022 CD Forum Support 6 11-02-2005 15:42
File resize? ryan_f Website Design/Showcase 9 10-10-2004 12:03
Picture resize in IE6 Wetzel CD Forum Support 4 30-01-2004 02:30


All times are GMT -5. The time now is 02:06.

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