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
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:
- How to drag image over different layout?Best solution by Stack Overflow
- How to reinstall window 7 home on one partition?Best solution by Super User
- How to restore windows 7 without losing data?Best solution by Super User
- How to resize image without losing EXIF data?Best solution by Stack Overflow
- How can i change my email address, without losing my old emails?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.