p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4.5 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=710)
-   -   Chapter 3 - CSS Formatting (http://p2p.wrox.com/showthread.php?t=93129)

mohamad June 22nd, 2014 12:02 AM

Chapter 3 - CSS Formatting
Hello everyone,

1. CSS as seperate files (recommended) - Master can reference these files to the browser with
correct styles. It also lower bandwidth with browser using the cached copy.

2. CSS as small Snippets (used cautiously) Can be embedded in the master file.

a. Under what circumtances do we need to place the the CSS directly in the master knowing
the advantages of CSS as a seperate file? What is the common practise?

Thank you.


Imar June 22nd, 2014 02:54 PM

Since a master page defines the looks of all pages that use that master there really isn't a need for embedded styles there as you might as well put it in an external CSS file. You typically use an embedded style in a content page to override the default styles on a page by page basis.

Hope this helps,


mohamad June 22nd, 2014 10:06 PM

Thanks Imar,

I got it, only use embedded CSS to change the overall default setting on a page by page basis.

>>>Since a master page defines the looks of all pages that use that master(CSS) there really isn't

Above line should be CSS instead of master, am I right?


All times are GMT -4. The time now is 11:09 PM.

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