?
Solved

ASP/VBscript/CSS & #Include

Posted on 2005-03-24
1
Medium Priority
?
202 Views
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.

Thanks

Rick
0
Comment
Question by:rhkennerly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

Accepted Solution

by:
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.

regards
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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