Solved

Web Design/Layout

Posted on 2008-06-20
2
292 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
Comment Utility
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
Comment Utility
/* 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
FTP File permissions 1 28
Animate a Title 7 34
Bootstrap input box width 2 13
Fixing my modal from bootstrap 18 9
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now