Solved

Web Design/Layout

Posted on 2008-06-20
2
295 Views
Last Modified: 2012-05-05
How is this site constructed/designed so that the layout completely fills the screen no matter what resolution you are using?  In particular it has no scroll bars showing as it resizes automatically.

http://www.bellesposa.com.br/

0
Comment
Question by:xmouser
2 Comments
 
LVL 6

Accepted Solution

by:
psychic_zero earned 500 total points
ID: 21829346
The site using external javascript file

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript" src="js/swfobject.js"></script>
<script language="JavaScript" src="js/swfforcesize.js"></script>
<script language="JavaScript" src="js/opencentered.js"></script>
<script language="JavaScript" src="js/screensize.js"></script>
<style>

I think the resize automatically function reside in the screensize.js and opencentered.js file. Below is the script for the both files:
//File - screensize.js
 
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
self.focus();
 
//File - opencentered.js
 
function open_center(url, name, params, Wwidth, Wheight) {
	Swidth = screen.width;
	Sheight = screen.height;
 
	Wleft = (Swidth / 2) - (Wwidth / 2) - 8;
	Wtop = (Sheight / 2) - (Wheight / 2) - 20;
 
	params = params+",left="+Wleft+",top="+Wtop+",width="+Wwidth+",height="+Wheight;
 
	window.open(url, name, params);
}

Open in new window

0
 
LVL 14

Expert Comment

by:ali_kayahan
ID: 21829347
/* hide from ie5 mac \*/
html {
  height: 100%;
  overflow: hidden;
}
#flashcontent {
  height: 100%;
}
/* end hide */
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #eee;
}
Setting the html tag to 100% height and then placing the Flash movie inside a div that is also set to 100% height does the trick.

0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question