|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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?
|
|
#4
|
||||
|
||||
|
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%
|
|
#5
|
|||||
|
|||||
|
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>
![]() |
|
#6
|
|||
|
|||
|
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"/> |
|
#7
|
||||
|
||||
|
Re: JavaScript Code for automatic Resize??/
Quote:
Code:
img {
width=100%;
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |