Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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..
Reply With Quote
  #2 (permalink)  
Old December 29th, 2010, 03:02 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
NexusFactor (December 29th, 2010)
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.