Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

PFA the sample Master page which I am using in my aspx website.
<img src="https://lh4.googleusercontent.com/-9iDLdlMMVys/VDO6OzrmsuI/AAAAAAAAFdM/dGQL5AH1OoU/w625-h499-no/sample.png"></img>

When I resize the Browser window, all Items of my website gets reshuffled. Like Menu Bar, Logo, Follow Us Images all moves downwards or upwards, or even over lap, if I reduce the size of the window. As shown Below:

<img src="https://lh6.googleusercontent.com/-3Cm4Jb7n3xE/VDO8LRY4XPI/AAAAAAAAFd0/RNa9ZSEb1Ac/w395-h346-no/sample1.png"></img>
Plz Help me how to fix this problem?

Thanks
Posted
Updated 7-Oct-14 0:16am
v2
Comments
Kornfeld Eliyahu Peter 7-Oct-14 6:21am    
The layout of your page is based on some CSS, so check those CSS rules and will see the cause of the misplaced elements when re-sizing...
KaushalJB 7-Oct-14 6:23am    
Have you heard of Responsive Design ?? Use Bootstrap and refer this link how to : http://www.mytecbits.com/microsoft/dot-net/bootstrap-3-0-0-with-asp-net-web-forms

1 solution

If you don't want responsive design, set the fixed width of the body element (or outermost container you want to have fixed:

CSS:
.outermost {width: 980px !important;} /* put any width you fancy here */

Note that this will indeed be fixed so that if your browser window goes under that size, you'll get scrollbars on the bottom.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900