Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 February 4th, 2015, 09:58 AM
Registered User
 
Join Date: Nov 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Doubt in CSS selector

Hello sir, I have doubt in Try It Out: Styling the Planet Wrox Home Page in Pg no.77, chapter3.In this, Styles.css consists of
1.heading---Type Selector
2.*---Universal Selector
3.h1---Type Selector
4.#PageWrapper---Id Selector
5.nav---Type Selector
6.Section#MainContent---Id Selector
7.aside---Type Selector
8.footer---Type Selector

Questions:
1.Why can't we use all Selector(except Universal Selector) as a Type Selector?
2.we give id for aside tag in markup but we used just Type Selector in CSS?
3.Why we use Section#MainContent instead of just #MainContent(as Id Selector)?
4.I don't understand the usage of Id Selector Beyond the other three Selector?
Thanks In Advance.
 
Old February 4th, 2015, 04:09 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 there,

I don't understand any of your questions except for this one:

3.Why we use Section#MainContent instead of just #MainContent(as Id Selector)?

Either would work. What I like about the first solution is that it applies to a section element. This makes it easier to understand where it is applied in the HTML.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving theme selector hatsmccoy BOOK: Beginning ASP.NET 4.5 : in C# and VB 2 September 29th, 2014 04:03 PM
CSS Universal selector Oleg Kolpashchikov BOOK: Professional ASP.NET 4.5 : in C# and VB 3 July 5th, 2013 09:55 AM
theme selector from profile Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 1st, 2007 10:35 PM
theme selector rav BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 12th, 2007 12:44 AM
Slot Selector motupally Classic ASP Basics 0 July 28th, 2003 05:03 AM





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