We help IT Professionals succeed at work.

asp.net standar template for 1024 monitors

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

Top Expert 2013

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

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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <div id="container">
      <div id="content">
        <asp:contentplaceholder id="MainContent" runat="server" />

Open in new window

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

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