Monday, 15 March 2010

asp.net mvc - Turning off ASP MVC resizing -



asp.net mvc - Turning off ASP MVC resizing -

the default template/project used mvc 4/5 web application re-sizes according screen size. if on tablet or phone re-size text/layout when manually re-size screen. there easy way turn off or have create new project own css? template remain @ fixed width.

mvc5 templates used bootstrap. bootstrap page: how disable page responsiveness

omit viewport mentioned in css docs. in razor layout remove: "<meta name="viewport" content="width=device-width, initial-scale=1.0">"

override width on .container each grid tier single width, illustration width: 970px !important; sure comes after default bootstrap css. can optionally avoid !important media queries or selector-fu.

if using navbars, remove navbar collapsing , expanding behavior. for grid layouts, utilize .col-xs-* classes in add-on to, or in place of, medium/large ones. don't worry, extra-small device grid scales resolutions.

asp.net-mvc css3 asp.net-mvc-5

No comments:

Post a Comment