Minggu, 28 Juli 2013

How to create a page of resolution 1024x768

Steps for creating resolution 1024x768
Step-1: Add a new Webform name as "Pageresolution.aspx" using Solution explorer.
Step-2: Add new Stylesheet page name as "StyleSheet.css" using Solution explorer.
Step-3: Add some class in StyleSheet.css file.

body {
   background-color : green ;


}
.page {
    background-color :white ;
    margin : 0px auto 0px auto ;
    width : 1024px;
}
Step-4 : Open "Pageresolution.aspx" page in source mode
Step-5 : Drag and drop your "Stylesheet.css" file from solution explorer into <head> tag

<head runat="server">
    <title>page resolution 1024x768</title>
    <link href="StyleSheet.css" rel="stylesheet" />
</head>
Step-6: Add class in <div> tag after <form> tag


   <form id="form1" runat="server">
    <div class ="page">
 
    </div>
    </form>
Step-7 : Now open  "Pageresolution.aspx" in Design mode
your page look like this
How to create a page of resolution 1024x768

Tidak ada komentar:

Posting Komentar