views:

65

answers:

1

hello frndz...

i m developing a web-application 4 mobile & i-pod...which is platform independent...4 dat m useing html 4 front end embedded in adv.java servlet....i ve a big problem about screen resolution...how can i set d screen resolution dynamically 4 any web-browser....n i dont want horizontal scroll bar...den which method is better 4 me?...plz suggest me sum thng...i know u'll give reply...Thankx in advance frndz...

A: 

You cannot really change the browser size on mobile phones with JavaScript.

What you need is to use different CSS rules based on the client. You can achieve this either by sniffing the User-Agent HTTP header and serving up a specific CSS file from the backend or by using CSS3 media queries.

Ates Goral
oh thankx for your reply.....but plz explain me in detail there is any method to archive this...
dip