Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am developing a small web application. I need to know what type of CSS is best?
I mean that internal css, or external or inline css.

Please tell me which is best for ASP.NET web application.
Posted
Updated 29-Aug-16 23:14pm
v2

For a general case, External CSS.

Reasons:
1. Maintainable
2. Easily replaceable
3. Cacheable
4. Loosely coupled
 
Share this answer
 
Comments
Gregory Gadow 24-Jan-11 14:02pm    
I would agree, with the additional advantages of reuse and flexibility. A single file can service the whole site, or you can break it up into a file for structure and one or more for colors. You can also create separate files that will be used depending on the user's browser, allowing you to move all of the IE 6 quirks into one document, Opera quirks into another, etc.
Sandeep Mewara 25-Jan-11 0:08am    
Yes. My 5! (though cannot be counted here!)
raju melveetilpurayil 24-Jan-11 14:13pm    
good one
fjdiewornncalwe 24-Jan-11 14:36pm    
Absolutely. Anything internal and inline just make the page pretty much unsustainable.
Sergey Alexandrovich Kryukov 24-Jan-11 19:57pm    
My 5. I never knew External vs Internal CSS somebody will consider as types of CSS. Isn't it somewhat arbitrary terminology?
For a record, sometimes internal CSS is very good to use. Examples: a single-file stand-along document for download, a code sample, etc.
yes for reusability and maintain when your web application is large or scale its better to use external css.
if we use external css we can use at different place and when changes occurs at one place
does not goes to in every line or check.
 
Share this answer
 
My answer is external CSS.
By including the external CSS in every page of a site, you ensure the pages will share the same presentation.
Advantage, when you make a change, you know know that the CSS is in sync on every page and a single change apply to every page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900