Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 November 27th, 2010, 02:43 PM
Authorized User
 
Join Date: Nov 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Angry Problem on Chapter 3.Page no.79. try it out

Hi.

I have coded as according to the book but still my sidebar is floating left.
Please help
 
Old November 27th, 2010, 03:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you post the code for the page and the CSS file? There might be a simple explanation for this, such as different casing...

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!
 
Old November 27th, 2010, 03:48 PM
Authorized User
 
Join Date: Nov 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Code:
 <link href="Styles/Styles.css" rel="stylesheet" type="text/css" />
</head>
<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>
        <p>
            We're 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>
    <div id="Sidebar">Sidebar goes here</div>
    <div id="Footer">Footer Goes here</div>
    </div>
    </form>
</body>




CSS 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;
}
 
Old November 27th, 2010, 03:51 PM
Authorized User
 
Join Date: Nov 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

If i place <div sidebar below <div menubar and change the CSS value for side bar to float "right" then it works.but thats not according to the book.
 
Old November 27th, 2010, 05:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at how you spell MainContent. You have MainContent in your HTML, but Maincontent in your CSS. Since CSS is case sensitive, the rule set defined in the CSS file for Maincontent is not active.

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:
black_era (November 27th, 2010)
 
Old November 27th, 2010, 06:16 PM
Authorized User
 
Join Date: Nov 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi
It Worked.Thank you so much.Just bought your book today and started working on it.Newys i am following you on twitter as well.Thanks for this great book.
 
Old November 27th, 2010, 06:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Hope you like it and have fun with it...

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in chapter 13 page 451 Try it out morteza BOOK: Beginning ASP.NET 4 : in C# and VB 3 June 6th, 2010 08:11 AM
problem on page 93 Chapter 3 aformoftruth BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 2 January 23rd, 2010 12:36 AM
chapter 2 - page 41 problem creating the page.. jorjiana BOOK: Beginning Oracle Application Express ISBN: 9780470388372 2 August 22nd, 2009 04:25 AM
Problem with Chapter 2 First Page xtiano77 ASP.NET 3.5 Basics 1 May 7th, 2008 01:00 AM
Page 352 (Chapter 11) IDisposable Problem sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 18th, 2006 05:12 PM





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