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

  • Home
  • SEARCH
  • 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 3280618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:43:29+00:00 2026-05-17T19:43:29+00:00

I am developing a website that many pages share the same header/footer/sidebar/topbar. Say I

  • 0

I am developing a website that many pages share the same header/footer/sidebar/topbar.

Say I have three pages: one/index.php, second/index.php, third/index.php. They all share the same header/footer/sidebar.

The problem is where should I put the header/etc and its corresponding css file, since a piece of html code could not import css file.

What’s a good way to modularize php/html page? Is there any good tutorial?

  • 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-17T19:43:30+00:00Added an answer on May 17, 2026 at 7:43 pm

    Sounds like you may want a MVC framework and a template engine. Check out CodeIgniter, or TinyMVC with Smarty. Call external stylesheets with:

        <LINK href="special.css" rel="stylesheet" type="text/css">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a website that requires several user types. I have been able
I'm developing a website with using struts2 and jsp pages. In many sites after
I am developing a simple website. It will have close to 20 pages. It
I joined a project that is developing a website. We have a main page,
I am developing a website that uses a lot of jQuery and I have
We are developing a website and we have a controller that handles CRUD for
I'm developing a website that will host some videos. The client wants control over
I am developing a website that has nested categories. I would like the categories
I'm developing a website that will be available in different languages. It is a
I'm developing a website that needs multilingual support. I am trying to use locales

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.