user386167
user386167

Reputation:

Making an ASP.NET application viewable on mobile browsers

I have an old ASP.NET web application (Web Forms, no MVC) and I would like to make it "look nice" in mobile browsers, while keeping the current design for desktop browsers.

One of my options is CSS media queries , but then - is there a list of standard screen sizes I should adapt it for?

I also read about Modernizr - but it seems to just detect browser capabilities, and I wouldn't know how to use it for my purposes.

What would be my best bet? Appreciate it.

Upvotes: 0

Views: 220

Answers (2)

user386167
user386167

Reputation:

I recurred to CSS media queries. Here's a nice introduction. Much appreciated.

https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

Upvotes: 0

Nomad101
Nomad101

Reputation: 1698

You should take a close look at jquery-mobile which has a lot of built in functions to deal with both changing the display based on device as well as a variety of layouts pre-optimized for mobile views.

Take a look at this link for way more information : http://jquerymobile.com/

However this would not necessarily be easy, depending on the complexity and overall layout of the "normal" web page. However it could easily be implemented to judge what device is being used and then switch to an already defined layout.

Upvotes: 1

Related Questions