View Single Post
  #5 (permalink)  
Old September 1st, 2010, 02:59 AM
leemark2k3 leemark2k3 is offline
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 40
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Heres my code Imar. This is my second go at the book but im playing around and changing the odd thing to get a better understanding such as i have different menu headings as you will see. The majority of the code is exactly the same as the book so im unsure why in the bool-Home,Reviews, About and Login are perfectly spaced apart but my headings are clumped together and i just cant figure it out. Help would be appreciated. Thanks Imar.

Masterpage
Code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>



<!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 runat="server">
    <title>Master Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
   
</head>

<body>
    <form id="form1" runat="server">
    <div id="PageWrapper">
    <div id="Header"><a class="HeaderLink" href="~/" runat="server"></a></div>
    <div id="MenuWrapper">
    <asp:menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" 
            Orientation="Horizontal" StaticEnableDefaultPopOutImage="False">
            <StaticMenuItemStyle CssClass="StaticMenuItemStyle" />
            <StaticSelectedStyle CssClass="StaticSelectedStyle" />
          <DynamicHoverStyle CssClass="DynamicHoverStyle" />
          <DynamicMenuItemStyle CssClass="DynamicMenuItemStyle" />
          <StaticHoverStyle CssClass="StaticHoverStyle" />
        </asp:menu>
        
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" 
            ShowExpandCollapse="False" Visible="False">
        </asp:TreeView>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
            ShowStartingNode="False" />
    </div>
     
    <div id="MainContent">
       <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath><br /><br />
    
    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
    </asp:ContentPlaceHolder>
    </div>
    <div id="Sidebar" align="center">
    <br />
    <br />
    
   
    
        <SSB:Banner ID="Banner1" runat="server" />
    
   
    
   </div>

   
    
    <div id="Footer"></div>
    </div>
    </form>
</body>
</html>
Default page
Code:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="HomePage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: x-large;
            font-weight: bold;
        }
        .style2
        {
            font-size: x-large;
            font-weight: normal;
        }
        .style3
        {
            font-size: x-large;
        }
        .style4
        {
            font-size: medium;
            font-weight: normal;
        }
        .style5
        {
            font-size: medium;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="MainContent0">
        <h1>
            <span class="style3">Hi and Welcome to Salford Student Books</span><span class="style1"><b><br />
            </b>
        </h1>
        </span>
        <p>
            <span class="style4">Salford Student Books is </span>
            <span class="style2"> <a href="http://www.salford.ac.uk" class="style5">
            The University of Salford's</a></span><span class="style4"> exclusive home for buying and selling your 
            student books. Here you'll find a large range of student books in every 
            category. You can </span>
            <span class="style2"> <b class="style5">search for books</b><span 
                class="style4"> or </span>
            <b class="style5">add a book</b><span class="style4"> to sell here. </span>
            <b class="style5">
            Registration</b><span class="style4"> is absolutely free. </span>
            </span>
        </p>
        <p>
            <a href="Log-in.aspx" class="style5">Log In Here</a></p>
    </div>
</asp:Content>
Reply With Quote