Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2014, 10:30 PM
Authorized User
 
Join Date: Sep 2014
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Ch. 6 please help!

I know this has been asked before but I haven't been able to find a fix.


I added the web form to the master page and now the CSS is not displaying properly. The side bar is supposed to be on right under the header and to the right side of the form. However it is now at the bottom. Please help me out! Thank you so much!
Quote:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Frontend.master.cs" Inherits="MasterPages_Frontend" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<link href="../Styles/Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="PageWrapper">
<div id="Header"><a href="~/" runat="server">Header goes Here</a></div>
<div id="MenuWrapper">Menu goes Here</div>
<div id="Main Content">
<asp:ContentPlaceHolder ID="cpMainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<div id="Sidebar">Sidebar goes here </div>
<div id="Footer">Footer goes here </div>

</div>

</form>
</body>
</html>

Quote:
#Header
{
background-color: #C0C0C0;
width: 844px;
height: 86px;

}

{
font-family: Arial;
}

h1
{
font-size: 20px;
}
.Introduction {
font-style: italic;
color: #000080;
}

#PageWrapper
{
width: 844px;
}

#MenuWrapper
{
width: 844px;
}

#MainContent
{
width: 644px;
float: left;
}

#Sidebar
{
background-color: Gray;
width: 160px;
float: left;
}

#Footer
{
background-color: #C0C0C0;
width: 844px;
clear:both;
}



#MainContent a
{
color: #0080000;
text-decoration: underline;

}

#MainContent a:visited
{
color: #FF0000;
text-decoration: underline;
}

#MainContent a:hover
{
color: #FFA500;
text-decoration: underline;
}

h1 {
padding: 0px 0px 10px 0px;
}
 
Old September 18th, 2014, 11:08 PM
Authorized User
 
Join Date: Sep 2014
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default I figured it out

There was a space that didn't belong. I need to be more careful in the future!
 
Old September 19th, 2014, 04:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

HTML and CSS are picky, aren't they ;-)

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 19th, 2014, 12:16 PM
Authorized User
 
Join Date: Sep 2014
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default ha

Yeah that's what I'm learning!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 4 and Ch 13/15 - controls and the DataPager AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 February 24th, 2014 04:56 PM
Ch 9-but will learn more abt User Controls (ch 8) btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 24th, 2010 11:40 AM
Search ch 13, ch 16 sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 October 27th, 2009 04:44 PM
Ch 2 - Ex 2 jkiernander BOOK: Ivor Horton's Beginning Visual C++ 2005 0 December 29th, 2007 08:47 PM
Ch. 4 & Ch. 12 athena BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 23rd, 2004 10:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.