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 June 6th, 2012, 10:44 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default CSS vs Skins

Can you not target ASP.NET webform objects with CSS? like doing this:
Code:
.contentArea
{
width:50px;
height:50px;
border:solid;
position:relative;
}
<asp:Panel class="contentArea" runat="server">
What I am confused about is where do skins come into play in all of this? Do they not act like CSS selectors for ASP.NET webform objects too?

Thanks once again! :-)
 
Old June 7th, 2012, 02:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You may want to read the section on Skins again as the full details are in there. In summary: Skins do generate in-line CSS or CSS class attributes that point to CSS selectors in an external or embedded CSS style sheet. By using Skins, you can control the look and feel of server controls at a global level. So, rather than applying a CssClass to each and every Panel in your site like in your example, you can apply it once to a Panel in a Skin file and it gets applied to all Panel controls in the site that are targeted by the Skin.

Hope this helps,

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
Skins pennkaiser BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 August 4th, 2010 02:07 PM
Skins and IntelliSense member4953 BOOK: Beginning ASP.NET 4 : in C# and VB 1 June 15th, 2010 11:49 AM
ch6 Skins and Named Skins wingri BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 8th, 2008 02:57 AM
Advanced Themes, Skins and CSS adam_kahtava ASP.NET 2.0 Professional 1 April 3rd, 2007 07:25 PM
CSS and ASP.NETs Themes, and Skins adam_kahtava CSS Cascading Style Sheets 1 November 13th, 2006 08:58 PM





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