Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<%@ Master Language="VB" CodeFile="Synionic.master.vb" AutoEventWireup="true"  Inherits="Synionic" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link rel="stylesheet" type="text/css" href="stylesheet.css" />
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <script type="text/javascript" >
    $(document).ready(function() {      // Wait for the HTML to finish loading.
  var resize = function() {
    var height = $(window).height();  // Get the height of the browser window area.
    var element = $("body");          // Find the element to resize.
    element.height(height);           // Set the element's height.
  }
  resize();
  $(window).bind("resize", resize);
    });


        </script>
</head>
<body style="align-content:center;max-width:1250px;max-height:1000px ">
    <form id="form1" runat="server" style=" background-image: url('/img/Picture1.jpg'); width: 1250px; height: auto;background-position-x:center ;" >
        <div  style=" position:absolute;left:26px; top:100px; height: 24px; width: 158px;">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server" >
            </asp:ContentPlaceHolder>
            </div>


        <div  style=" position:absolute;left:913px; top:800px; height: 28px; width: 140px;">
        <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server">

        </asp:ContentPlaceHolder>
            </div>

        <div  style=" position:absolute;left:100px; top:50px; height: 28px; width: 1000px;" >
            <asp:ContentPlaceHolder ID="ContentPlaceHolder4" runat="server"></asp:ContentPlaceHolder>
        </div>
    <div style="width:1250px; height:1000px; ">
        <div  style=" position:absolute;left:88px; top:352px; width: 207px; height: 24px;">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
    </div>
           <div  style=" position:absolute;left:86px; top:375px; width: 207px; height: 18px;">
        <asp:ContentPlaceHolder ID="ContentPlaceHolder6" runat="server">

        </asp:ContentPlaceHolder>
            </div>
        </div>
    </form>
</body>
</html>

This is my HTML page please help me out
Posted
Updated 3-Jun-14 1:21am
v2

Generally, if you don't specify any sizes at all in your HTML, everything will fit as best it can.

By hard-coding your positions and sizes, it's only going to look 'right' when the browser window is correctly proportioned.

So I'd start by removing all the size, width, height etc and use CSS to style more flexibly, so when the window size changes, the html can adjust itself.
 
Share this answer
 
Look at setting up you site for responsive design. It will help your site flow for different screen sizes and devices. It is not a cure all, but with a little work you can get great results.

There are just a few of the responsive templates

HTML5 Boilerplate[^]

Bootstrap - Probably the most popular at this point in time[^]

Foundation[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900