I have a web site created with asp.net mvc3 using razor view engine. It is visible in mobile devices. (eg. ipad). but there are css anomalities. How can I achieve this. View the same site in desktop and mobile device (ipad)?
I am hoping i can achieve only with changin css with out touching my logic and views.

Thank you in advance.

Here's a nice introduction.

you can use the following meta tag in your head tag which resizes the div in your html page and replace all your controls in the div tag

<meta name="viewport" content="width=<%=Request.Browser("ScreenPixelsWidth")%>,height=<%=Request.Browser("ScreenPixelsHight")%>" />

Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.