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 December 29th, 2010, 02:24 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Footer Not In the Right Place

Hello There.

First I would like to say, that this book is awesome, very insightful and well written.

However I have one problem. I am working my way through Chapter 3: Working with CSS in Visual Web Developer. The Footer is not positioned correctly like the example in the book. The Footer appears under "Hi there visitor and welcome to Planet Wrox" but before the paragraph. I have doubled checked the CSS file and code inside the default page. Maybe I am missing something, if anyone could help, that would be greatly appreciated.


Charles
Code:
<body>
    <form id="form1" runat="server">
    <div id="PageWrapper"> 
    <div id="Header">Header Goes Here</div>
    <div id="MenuWrapper">Menu Goes Here</div>
    <div id="MainContent">
        <h1>Hi there visitor and welcome to Planet Wrox</h1>
    </div> 
    <div id="Sidebar">Sidebar Goes Here</div>
    <div id="Footer">Footer Goes Here</div>
    
    
        <p>
            We are glad you're <span class="style1">paying a visit</span> to
            <a href="http://www.PlanetWrox.com">www.PlanetWrox.com</a>, the coolest music 
            community site on the Internet.</p>
        <p>
            Feel free to have a look around; there are lots of interesting<strong> reviews 
            and concert pictures</strong> to be found here.</p>
    
    </div>
    </form>
</body>
CSS File
Code:
#Header
{
    background-color: #C0C0C0;
    width: 844px;
    height: 86px;
}

*
{
    font-family: Arial;
    
}

h1
{
    font-size: 20px;
 
}

#PageWrapper
{
    width: 844px;
    
}

#MenuWrapper
{
    width: 844px;
    
    
}

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

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

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

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

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

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

Last edited by NexusFactor; December 29th, 2010 at 02:26 PM..
 
Old December 29th, 2010, 03:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
First I would like to say, that this book is awesome, very insightful and well
written.
Hi there, Great to hear. Thanks!

What exactly is wrong with the footer? It looks fine to me using your code. However, the code that follows the footer shouldn't be there. E.g. the footer isn't placed too high, but it's followed by content that should preceed it instead. Does moving the two <p> elements to directly under the <h1> element (where they belong) fix it for you?

Cheers,

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!
The Following User Says Thank You to Imar For This Useful Post:
NexusFactor (December 29th, 2010)
 
Old December 29th, 2010, 03:11 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default THANK YOU

Thank you so much Imar. Worked Perfectly





Similar Threads
Thread Thread Starter Forum Replies Last Post
footer doesn't appear in right place Rachel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 January 7th, 2009 02:44 PM
Where do I place the code? dotnetDeveloper ASP.NET 2.0 Basics 1 August 7th, 2008 01:06 PM
Place Holder Manoj Bisht ASP.NET 1.x and 2.0 Application Design 3 October 24th, 2007 08:52 AM
In-place precompilation AGS BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 December 3rd, 2005 07:45 PM
Logging in from another place Hadware General .NET 0 December 14th, 2004 03:39 PM





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