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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code to make content appear proportionate in the browser

Status
Not open for further replies.

zickler

Technical User
Mar 6, 2004
28
IE
I embedded an swf in my htm file and set it at 800X600, however it looked too small on my Flat screen when I viewed it in the browser, so I increased the settings of the swf file to 1024X768, that looked better on my screen, but when I viewed it on another monitor that was way to big. Is there any html code I could use so that it woudl automatically adjust to a proportionate size depending on the size of the user's browser. Below is a sample of the code of my index page

<HTML>
<HEAD>
<TITLE>Homepage</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
background-color: #0066FF;
}
-->
</style></HEAD>
<BODY>
<table width=100% height=100%>
<tr height=90%>
<td>
<center>
<!-- URL's used in the movie-->
<A HREF= <!-- text used in the movie-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="800" height="600">
<param name="movie" value="content/index.swf">
<param name="quality" value="high">
<embed src="content/index.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object>
</center>
</td>
</tr>
</table>
</BODY>
</HTML>
 
<table width=100% height=100%>
<tr height=90%>
Percentage

vs.
width="800" height="600">
pixels


try using percentage for your swf file and see how it looks






:--------------------------------------------------------------------------:
fugitive.gif

ok,ok...I did shoot the deputy but he told me he was the sheriff!
:--------------------------------------------------------------------------:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top