Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize web page

Status
Not open for further replies.

Ash1

Technical User
Apr 25, 2001
2
GB
Hi im new to dreamweaver an Im wondering if u can answer two questions

1. I want my web page to resize when opened in different browsers or when screen resolutions are different..How do I do this

2. I have a table on my webpage an am wonderin how I would put a scroll bar so users can scroll down

thanks
ASH
 
Hi Ash1,

Answer (1):

In dreamweaver you can select your table and select the stretch option in the properties panel (Dreamweaver 4) If you are using Dreamweaver 3 just make row=100% also in the properties panel.

This will stretch your table and everything inside out to the limits of the browser window.

It will NOT resize photos and images like Flash does. It will simply increase the space between your objects and decrease the wrap on your text.

Answer (2):

ScrollBars will automatically appear as needed for anything that goes beyond the horizontal or vertical limits of the browser window.

I have put a neat FAQ in the FAQ section of this forum on how to create custom scrollbars if you would like to check those out.

Let me know if you need more help.

Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Thanks for the answer
as for the 1st question on how to make my page resize to fit the screen..I didnt just mean the Table (sorry bad explanation on my behalf) I meant the whole website...I want it to fit to screen automatically when users are using different Browsers or Screen Resolutions (CAN U HELP)
Thanks again
ASH
 
try this code. there are two pages here 800 x 600 and 1240 x 768 Have fun

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>

<script language=&quot;JavaScript&quot;>
<!--
function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)
{
// //
if (fullScreen)
{
targetWidth = screen.availWidth;
targetHeight = screen.availHeight;
}

if (windowWidth < targetWidth) windowWidth += widthMod;
if (windowHeight < targetHeight) windowHeight += heightMod;

windowLeft = (screen.availWidth / 2) - (windowWidth / 2);
windowTop = (screen.availHeight / 2) - (windowHeight / 2);

top.window.resizeTo(windowWidth,windowHeight);
top.window.moveTo(windowLeft,windowTop);

if (windowWidth < targetWidth || windowHeight < targetHeight)
setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10);
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; onLoad=&quot;TB_animateWindow(100,100,800,600,20,20,false)&quot;>
<div align=&quot;center&quot;>
<p><font face=&quot;Courier New, Courier, mono&quot;><b><font color=&quot;#CCCCCC&quot; face=&quot;Geneva, Arial, Helvetica, san-serif&quot;>This
window is automatically defaulting to 800 X 600 pixels</font></b></font></p>
<p><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#CCCCCC&quot;>(slick,
huh?) </font></b></p>
<p align=&quot;left&quot;> </p>
<p align=&quot;left&quot;> </p>
<p align=&quot;left&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;2&quot; color=&quot;#999999&quot;><a href=&quot;1024-X-768pix.htm&quot;>1024
x 768</a></font></b></p>
</div>
</body>
</html>

----------------
second page
----------------

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>

<script language=&quot;JavaScript&quot;>
<!--
function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)
{
// //
if (fullScreen)
{
targetWidth = screen.availWidth;
targetHeight = screen.availHeight;
}

if (windowWidth < targetWidth) windowWidth += widthMod;
if (windowHeight < targetHeight) windowHeight += heightMod;

windowLeft = (screen.availWidth / 2) - (windowWidth / 2);
windowTop = (screen.availHeight / 2) - (windowHeight / 2);

top.window.resizeTo(windowWidth,windowHeight);
top.window.moveTo(windowLeft,windowTop);

if (windowWidth < targetWidth || windowHeight < targetHeight)
setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10);
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; onLoad=&quot;TB_animateWindow(800,600,1024,768,20,20,false)&quot;>
<div align=&quot;center&quot;>
<p><font face=&quot;Courier New, Courier, mono&quot;><b><font color=&quot;#CCCCCC&quot; face=&quot;Geneva, Arial, Helvetica, san-serif&quot;>This
window is automatically defaulting to 1024 x 768 pixels</font></b></font></p>
<p><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#CCCCCC&quot;>(slick,
huh?) </font></b></p>
<p align=&quot;left&quot;> </p>
<p align=&quot;left&quot;> </p>
<p align=&quot;left&quot;> </p>
<p align=&quot;left&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;2&quot; color=&quot;#999999&quot;><a href=&quot;800-600pix.htm&quot;>800
x 600</a></font></b></p>
</div>
</body>
</html>
-----------------------------
I've broken it again !!
-----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top