html webpage how to minimize window without losing layout of page?

  • Thread starter Thread starter joe.attaboy
  • Start date Start date
J

joe.attaboy

Guest
Set you containing blocks to specific sizes using specific measurements.

For example, if you have a div that contains all the content of the page, set the width and height to a specific size in CSS:

div.main {
width: 1000px;
height: 1000px;
}

if you do this vice using percentages, the layout should stay fixed in place when you shrink the window.
 
One thing you can do is to use JavaScript Screen object. It has the height and width property so you can import a determinated css file dinamically to your pages depending on those values.

<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{

}
//-->
</SCRIPT>
 
Hi, well i'm just finished a website using php and html and the only problem i'm having is that when I minimize the size of the window all the html layout is getting squashed in together. I want to be able to minimize the window but not lose any layout i.e. when you minimize this window you will notice that the tabs on the top of the page and the text dont bundle up together. how can i prevent this?
I am using a horizontal frameset dividing the page 20% 80%, when i resize the page i lose the layout of the page when it was maximized. Need help!
 
One thing you can do is to use JavaScript Screen object. It has the height and width property so you can import a determinated css file dinamically to your pages depending on those values.

<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{

}
//-->
</SCRIPT>
 
Back
Top