Okay, so my first question was is it important to order your css tags, which i discovered via this site that the answer is yes.
What I failed to discover in these response was HOW to order them. For my my case is a little different then where this was vaguely answered elsewhere (from my research anyways).
I am using php include_once tags to insert my header, footer, and body. The purpose of this is to condense the file sizes (optimization) and to organize and separate the code so a noob such as myself doesn’t get confused; also it allows me to use theses aspects throughout the site on different pages and just have to change that one file to change things site wide (for example, if i were to change the logo, it would change site wide). So essential my index looks like this so far:
div
php include of header
/div
div
php include of body
/div
div
php include of footer
/div
now I know this is going to need to be fine tuned so the header, body and footer dont cluster up, but I (think that I) have it all covered.
What my issue is is that I’ve styled the divs in this page (at least the body div) and the divs in the body include file, which is essentially a two column div page with divs inside the two containers for the content.
How do I begin to know how to style this. Also when ever I put the css into a style sheet, half the styles are there, the other half aren’t, am I supposed to put a link to the style sheet in every included file? And if so how do I do this while still being able to validate, for example I can’t put a head tag in the includes, because then there would be four head tags in the index :/ I know this is more than one question but it all ties together into one mess of a problem, so if you could clarify that would be awesome. Thanks!
Generally, what I like is to do things like so:
The head.php file, includes EVERYTHING:
<html>and<head>tags.<body>and if needed<div id=main-container>.And it works fine for me. There is no need for you to include multiple instances of style sheets everywhere, only once in the head tag. As for the half style sheets, clear your cache and try again, make sure the file is really whole and not half saved by mistake.