Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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
  #1 (permalink)  
Old March 4th, 2014, 09:10 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default (solved) Chapter 6 DarkGray theme

Hello,

I am working on Chapter 6 and I am having problems with the DarkGray theme not displaying as it should. Here is what it looks like

http://i61.tinypic.com/zjb6nd.png and I loaded the default Chapter 6 files that I have not made any changes to and it looks the same. http://i60.tinypic.com/ifuyjm.png

Now the website displays correctly, but just the code on my machine doesn't. Here is DarkGray.css and I have done nothing to it

Code:
*
{
  /* 
    Defines the main font used throughout the entire site.
  */
  font-family: Verdana, Arial, Sans-Serif;
}

body
{
  /* 
    Clears white space around the body and sets the background color to a dark grey.
  */
  margin: 0;
  background-color: #565656;
}

a
{
  /*
    Clears the underline on normal links, and gives them #FE601A (orange) as the text color.
  */
  color: #FE601A;
  text-decoration: none;
}

  a:hover
  {
    /*
    Underlines links when the user hovers the mouse over them.
  */
    text-decoration: underline;
  }

h1
{
  /*
    Makes h1 elements smaller than their browser default.
  */
  font-size: 20px;
}

header
{
  /*
    Sets the background of the header to the same color as the right-hand side of the 
    header image. This way, the header can expand to the right.
    The margin at the bottom creates some room between the header and the menu and the main content.
  */
  background-color: #E34600;
  margin-bottom: 20px;
}

  header a
  {
    /*
    The header a is nested in the header. It provides a link to the homepage,
    and sets the header image background.
  */
    background-image: url(Images/Header.jpg);
    background-repeat: no-repeat;
    width: 944px;
    height: 138px;
    display: block;
  }

nav
{
  /*
    Floats the entire menu on the left of the content.
  */
  width: 130px;
  float: left;
  padding: 10px;
  padding-top: 0; /* Reset the top-padding. The first menu item (home) already adds some padding to its top to create room between the nav element and the first menu item */
  background-color: #F8F4EF;
  margin-left: 35px;
  margin-right: 20px;
  font-size: 0.8em;
}

.FirstLevelMenuItems
{
  padding-top: 10px;
}

section#MainContent
{
  /*
    Defines the main content area. The text color is white (on the gray background set on the body).
    The #MainContent section element has a minimum height of 370 pixels, but can grow if necessary.
    The font-size is 80% of its parent element, which in this case comes down to 80% of the font
    the user has specified as the default font in the browser.
  */
  color: white;
  font-size: 0.8em;
  width: 600px;
  min-height: 370px;
  padding: 10px;
  float: left;
}

aside#Sidebar
{
  /*
    The Sidebar is positioned absolutely at the right of the page.
    It has the same font-size and color as #MainContent
  */
  font-size: 0.8em;
  width: 124px;
  color: White;
  float: left;
  padding-top: 10px;
}

footer
{
  /*
    The footer is positioned below all other content.
    At the top, it gets a border with a dashed style, while all other sides have no border.
	  The line-height centers the text in the footer vertically.
  */
  text-align: center;
  border-top: 2px dashed gray;
  height: 37px;
  line-height: 37px;
  clear: both;
  background-color: #FCBB5B;
}

.Introduction
{
  font-style: italic;
}
I am confused

Last edited by historyb; March 6th, 2014 at 01:51 AM..
  #2 (permalink)  
Old March 5th, 2014, 06:37 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

It looks like you have both the theme and the stylesheetTheme set in the web.config. You should remove the latter from that file.

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:
historyb (March 6th, 2014)
  #3 (permalink)  
Old March 6th, 2014, 01:50 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank you. That was the problem


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 Theme change code mfl722 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 June 14th, 2013 09:20 AM
chapter 6- theme aman7 BOOK: Beginning ASP.NET 4 : in C# and VB 2 November 5th, 2012 01:48 AM
Theme dissapeared in chapter 7 robochrish BOOK: Beginning ASP.NET 4 : in C# and VB 2 May 15th, 2012 10:15 AM
Chapter 6 - theme not changing granola911 BOOK: Beginning ASP.NET 4 : in C# and VB 1 January 4th, 2012 09:34 AM
Theme Selector wont pick up other theme Tawanda BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 May 4th, 2007 08:44 AM





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