Monday, December 26, 2011

I'm reading up on Scott Hanselman's notes on MVC4

I'm reading up on Scott Hanselman's notes on MVC4 here. The highlights:
 

  • Get it here!
     
  • Get the opera mobile emulator here.
     
  • He touches on CSS media queries:

    @media only screen and (max-width: 850px) {
     
  • And the viewport HTML5 tag which is new to me:

    <meta name="viewport" content="width=device-width">

    A mobile browser will scale to fit everything in the viewport tag onto the screen without regard to how big it is.
     
  • And now the magic: If you have view labeled whatever.cshtml, you need only create whatever.Mobile.cshtml in the same folder to override the default view in a mobile setting!

No comments:

Post a Comment