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 August 27th, 2012, 11:27 AM
Registered User
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default sidebar still on left side.

i am doing the exercises in this book and i am stuck on page 82. the problem is in the #sidebar instructions; i can't seem to get the sidebar to be positioned on the right side of the page. i have the settings set exactly like they are on the page. any help would be appreciated.

dave.
 
Old August 27th, 2012, 01:18 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 Dave,

Can you post the code for the Master Page as well as for the CSS file? It's a bit hard to say what's wrong otherwise.... ;-)|

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 February 15th, 2013, 04:04 PM
Registered User
 
Join Date: Feb 2013
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default have same issue

Like Dave describes, my sidebar is on the left side of the page. Can get it to the right side but it's below the main content.

From page 79, i typed the following code into "Default.aspx":
Code:
...
        <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>
...
From page 82 I typed the following code into "Styles.css":
Code:
...
#MainContent {
  width: 644px;
  float: left;
}

#Sidebar {
  background-color: #808080;
  width: 180px;
  float: left;
}
#Footer {
  background-color: #C0C0C0;
  width: 844px;
  clear: both;
}
And, yes I did notice it says "left" in the property value, as does my book. I tried putting in "right" and it did move it to the right but under the main content, not at the top like the picture in the book.

I did not change the master page file "Frontend.master". It's full contents are:
Code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Frontend.master.cs" Inherits="NewFolder1_Frontend" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>
Thanks for any help!
rlp

Last edited by RobinP2K1; February 15th, 2013 at 04:06 PM..
 
Old February 15th, 2013, 04:55 PM
Registered User
 
Join Date: Feb 2013
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Got it! ID Selector Case Sensitive

I found in "Default.aspx" I had entered:
Code:
<div id="Maincontent">
When I should have entered:
Code:
<div id="MainContent">
Thanks!
rlp





Similar Threads
Thread Thread Starter Forum Replies Last Post
Left Sidebar Dr.T. BOOK: Professional WordPress 1 March 11th, 2011 06:15 AM
Error : structure required on left side of . or .* Swati Chari C++ Programming 0 October 1st, 2010 04:35 AM
Chapter 6: Sidebar Goes Here CSharp0101 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 April 13th, 2010 03:31 AM
how to display scrollbars on left side of screen? rupen CSS Cascading Style Sheets 4 November 2nd, 2005 05:18 AM
left side menu nusrati HTML Code Clinic 1 July 16th, 2004 03:52 PM





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