Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:56:42+00:00 2026-05-25T02:56:42+00:00

Okay, so my first question was is it important to order your css tags,

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:56:43+00:00Added an answer on May 25, 2026 at 2:56 am

    Generally, what I like is to do things like so:

    <?php require_once(parts/head.php); ?>
    
    Page contents in HTML
    
    <?php require_once(parts/sidebar.php); //If present ?>
    
    <?php require_once(parts/footer.php); ?>
    

    The head.php file, includes EVERYTHING:

    • doctype
    • <html> and <head> tags.
    • stylesheets and scripts
    • beginning of <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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay this is a fairly broad question. This is my first App and I'm
Okay first of all, I admit I took elements from this question here: How
Okay at first I thought this would be pretty straightforward. But I can't think
first, I can't stand Crystal! Okay, that's off my chest... Now, we have an
Okay so this is sort of a double question so I'll split it into
First of all, i'm a Graphic designer so please ignore if this programming question
Okay, here's my issue (and my first question on SO!), and no, as much
Okay first up I am using: DirectX 10 C++ Okay this is a bit
Okay, so the answer to my question might not be the problem but here's
Okay, allow me to say first off that I am working on developing my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.