p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   p. 510 - Styles.css (http://p2p.wrox.com/showthread.php?t=88732)

Tulsi November 1st, 2012 01:21 PM

p. 510 - Styles.css
 
Imar,

In this example, it seems that the reason for creating a Styles.css file in the root directory of the web site was because the formating defined is supposed to be applied to both of the themes.

Is it standard practice to put all formating/style related info in the Styles.css file whenever it is common to all themes being used in a web site?

When is the Styles.css file typically used?

Thank you.
Tulsi

Imar November 2nd, 2012 05:14 AM

Quote:

In this example, it seems that the reason for creating a Styles.css file in the root directory of the web site was because the formating defined is supposed to be applied to both of the themes.
Indeed.

Styles.css is just an arbitrary name / locatiion. You can pick whatever makes sense for you. To keep the themes self-contained, you could duplicate the code in each of the theme's CSS files. However, by putting it in a shared file, you only need to manage the code once for multiple themes.

Cheers,

Imar


All times are GMT -4. The time now is 01:31 AM.

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