Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #1 (permalink)  
Old November 27th, 2010, 01:43 PM
Authorized User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Location: Aldershot.UK
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
Reply With Quote
  #2 (permalink)  
Old November 27th, 2010, 02:40 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 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!
Reply With Quote
  #3 (permalink)  
Old November 27th, 2010, 02:48 PM
Authorized User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Location: Aldershot.UK
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;
}
Reply With Quote
  #4 (permalink)  
Old November 27th, 2010, 02:51 PM
Authorized User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Location: Aldershot.UK
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.
Reply With Quote
  #5 (permalink)  
Old November 27th, 2010, 04:46 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
black_era (November 27th, 2010)
  #6 (permalink)  
Old November 27th, 2010, 05:16 PM
Authorized User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Location: Aldershot.UK
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.
Reply With Quote
  #7 (permalink)  
Old November 27th, 2010, 05:31 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 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!
Reply With Quote
Reply


Thread Tools
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
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 22nd, 2010 11:36 PM
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



All times are GMT -4. The time now is 12:55 AM.


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