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 for Visual Studio 2015
This is the forum to discuss the Wrox book Beginning ASP.NET for Visual Studio 2015 by William Penberthy; ISBN: 978-1-119-07742-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET for Visual Studio 2015 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 April 23rd, 2017, 12:17 AM
Authorized User
Points: 138, Level: 2
Points: 138, Level: 2 Points: 138, Level: 2 Points: 138, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 34
Thanks: 5
Thanked 0 Times in 0 Posts
Default CSS Question

On page 58 (Ch. 3), I see an example of CSS:

h1 .special {
styles go here...
}

I typed in the following code:

<h1 class="special">Hello There</h1>

But it didn't work.

h1.special { } seemed to work, but not a space separator.

What did I do wrong?

Revision: Okay, I think I figured this one out. It's inheritance.
Question: would there ever be any elements that are within a header element? A <span>?
Or is h2 .special a bad example whereas p .special would make more sense?

Last edited by papadan; April 23rd, 2017 at 12:42 AM. Reason: I think I figured it out.
Reply With Quote
  #2 (permalink)  
Old Today, 12:40 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 33%
Activity: 33% Activity: 33% Activity: 33%
 
Join Date: Oct 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ya your fired query is absolutely perfect but there might be some site issues or you might be lacking somewhere as you need to check it out for commas and brackets.
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
CSS Question papadan BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 1 April 2nd, 2017 04:24 PM
CSS question, need to center a header. wbport BOOK: Beginning HTML and CSS (published March 2013) 5 July 26th, 2013 11:31 AM
3-Column CSS Question kwilliams CSS Cascading Style Sheets 2 April 8th, 2008 03:33 PM
Question on First CSS savoym CSS Cascading Style Sheets 2 February 1st, 2007 10:02 AM
CSS question Edward King CSS Cascading Style Sheets 1 September 16th, 2005 02:02 PM



All times are GMT -4. The time now is 07:52 AM.


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