ASP/VBscript/CSS & #Include

Posted on 2005-03-24
Medium Priority
Last Modified: 2013-11-18
My pages #include header and footer.  I've been working heard to master CSS.  Now, I'm trying to apply it to my situation.  .  I've got a lot of reference material on hand, but haven't seen this addressed.  

If I want the imported global.css to apply to header, body, and footer, should I import the .css file into the header? The body? or into all three? (which seems kind of wasteful).  

I'm sure I could figure this out on my own, but instead of trial and error, I was wondering if there was aggreement upon best practice.   An up or downside to doing it one way or the other.


Question by:rhkennerly
1 Comment
LVL 55

Accepted Solution

Ryan Chong earned 2000 total points
ID: 13624076
>>If I want the imported global.css to apply to header, body, and footer, should I import the .css file into the header? The body? or into all three?
It's depends on how you want to control the css over your page, basically you can try put the css link in either header, or body of the page.

Put in body got an advantage, where you can see the exact CSS effect applied to the page when view it through DW.

Put in header got an advantage, where you got centralize control, and you only need to change 1 place (header) if you got any changes.

If you're quite confident and experience web developer, i suggest you put the CSS link at header, else you can try put it at body.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question