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 769589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:21:41+00:00 2026-05-14T18:21:41+00:00

Should i keep CSS of home page and landing pages in separate CSS file

  • 0

Should i keep CSS of home page and landing pages in separate CSS file of big sites. ?

If i make site with a 7-8 different templates where 1 templates of home pages 1 is for inner content pages and other template for different type of landing pages.

and different style needed for same HTML elements in website ,

For example :

for inner pages H2 has different style but for landing pages H2 is different in color, font -size, line height, top bottom margin

How i should manage all this ? any tips to make good,easily manageable, scan-able CSS.

Thanks in advance.

  • 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-14T18:21:41+00:00Added an answer on May 14, 2026 at 6:21 pm

    what about using different <body id="home_page"> <body id="download_page"> and so on!?

    or something like wrapper or content as usual instead of using body!

    so you have:

    body { padding:0; margin: 0; text-align:center; } /*applied to all*/    
    h2 { font: normal normal 14px sans-serif } /*applied to all*/    
    #home_page h2 { color: #333 }   /* home page only */ 
    #download_page h2 { color: #666 } /* download page only */ 
    

    just an example but you got the idea!

    UPDATE

    if you are using CMS, i don’t know if is a common cms or one created by you, and also i don’t know if you are free to edit it as you want in a custom way, or need to be a plug and play for client!

    Assuming you are rendering all the pages content with php, then you can

    1 – check for what page the user is
    viewing and switch style! not very
    elegant although!

    2 – your cms may have OR if of your
    creation should have some option for
    theme creation like:

    define( DEFAULT_STYLE , true ); //or false this would make my very fisrt responce real!
    

    3 – render the CSS from backend
    header("Content-type: text/css");
    based on what is the user request!

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

Sidebar

Related Questions

I'm struggling to determine where in my CSS the padding/margins should go to keep
When I'm maintaining and distributing a Python package, should I keep the MANIFEST file
What should i keep table { border-collapse: separate; } or table { border-collapse: collapse;
Assume that I have some HTML page, and a corresponding CSS file. I'd like
Can we write simple css syntax is .scss file? When we use .scss should
Say,should keep the space between letters(a-z,case insensitive) and remove the space between non-letters?
I have read that you should keep the number of connections in your database
I can't figure out why i should keep stream opened while i'm using Bitmap
Maybe I should just keep my mouth shut and move forward, but something tells
Just wondering for user permission check, Should you keep the permission in the session

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.