Wrox Programmer Forums
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 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 April 22nd, 2017, 11:17 PM
Authorized User
Join Date: Mar 2017
Posts: 55
Thanks: 12
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 22nd, 2017 at 11:42 PM.. Reason: I think I figured it out.
Old November 20th, 2017, 12:40 AM
Posts: n/a

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.

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 03:24 PM
CSS question, need to center a header. wbport BOOK: Beginning HTML and CSS (published March 2013) 5 July 26th, 2013 10:31 AM
3-Column CSS Question kwilliams CSS Cascading Style Sheets 2 April 8th, 2008 02: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 01:02 PM

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