 |
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
|
|
|
|
|

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

November 27th, 2010, 03:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

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

November 27th, 2010, 05:46 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

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

November 27th, 2010, 06:31 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You're welcome. Hope you like it and have fun with it...
Imar
|
|
 |