Showing mobile friendly web page without having to zoom in

Posted by Grant on Stack Overflow See other posts from Stack Overflow or by Grant
Published on 2010-04-28T00:16:28Z Indexed on 2010/04/28 0:23 UTC
Read the original article Hit count: 652

Filed under:
|
|
|

Hi, im trying to create a mobile friendly web page using the code below. When i view it over a HTC desire i have to zoom in to see the correct size. How can i get it to display normally without having to zoom in?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MobileSite._Default" %>


<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
    <title>My Mobile Site</title>
</head>
<body style="width: 480px">
    <form id="form" runat="server">
    <div>    
        Test<br />
        Test<br />
        Test
    </div>
    </form>
</body>
</html>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mobileweb