We help IT Professionals succeed at work.

asp.net standar template for 1024 monitors

TonyReba
TonyReba asked
on
can someone share a basic / standar asp.net with masterpage layout with css optimized for 1024 resolutions?
Comment
Watch Question

Top Expert 2013

Commented:
This should help http://bit.ly/tiz2ON


Cd&
I use something like this (hope it's right as my code's in work and I can't remember everything from that project as it was earlier in the year):

Site.Master page
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
  </head>
  
  <body>
    <div id="container">
      <div id="content">
        <asp:contentplaceholder id="MainContent" runat="server" />
      </div>
    </div>
  </body>
</html>

Open in new window


index.aspx
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Default.aspx.cs" title="Untitled Page" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
</asp:Content>

Open in new window


then in your css file:
body {
  margin: 0;
  padding: 0;
  font-family: verdana, arial, helvetica;
  font-size: 82%;
  color: #000000;
}
#container {
  width: 960px;
  margin: 0 auto 0 auto;
  text-align: center;
}
#content {
  text-align: left;
}

Open in new window