How to prevent overlapping in relative layout programmatically?

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

  • 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?

  • Answer:

    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>

John D at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

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.

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.