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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:38:54+00:00 2026-05-10T16:38:54+00:00

Leaving aside the question of whether you should serve single or multiple stylesheets, assuming

  • 0

Leaving aside the question of whether you should serve single or multiple stylesheets, assuming you’re sending just one, what do you think of this as a basic structure?

/* Structure */

Any template layout stuff should be put into here, so header, footer, body etc.

/* Structure End */

/* Common Components*/

Repeated elements, such as signup forms, lists, etc.

/* Common Components End*/

/* Specific Page 1 */

Some pages might have specific styles, that would go here.

/* Specific Page 1 End */

/* Specific Page 2 */

As above

/* Specific Page 2 End */

/* Specific Page etc */

And so on.

/* Specific Page etc End */

  • 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. 2026-05-10T16:38:54+00:00Added an answer on May 10, 2026 at 4:38 pm

    That’s similar to how I structure mine, however, I find that using sub-headings is the best way to do it, so I use this structure:

    /************************* * GLOBAL * *************************/

    /* All of the common stuff goes here under the appropriate sub headings */

    /* Heading formatting */

    /* Text formatting */

    /* Form formatting */

    /* Table formatting */

    /* etc */

    /************************* * LAYOUT * *************************/

    /* All the layout things go here under sub-headings */

    /* Header */

    /* Left Sidebar */

    /* Right Sidebar */

    /* Footer */

    /************************* * NAVIGATION * *************************/

    /* I put navigation separate to the layout as there can be a number of navigation points under their sub-headings */

    /* Main (horizontal) Navigation */

    /* Left Navigation */

    /* Right Navigation */

    /* Breadcrumb Navigation */

    /************************* * FORMS * *************************/

    /* Any form formatting that varies from the common formatting, if there are multiple differently formatted forms, then use sub-headings */

    /************************* * TABLES * *************************/

    /* Same deal as forms */

    /************************* * LISTS * *************************/

    /* Same deal as forms and tables */

    /************************* * CONTENT * *************************/

    /* Any specific formatting for particular pages, grouped by sub-headings for the page the same way as forms, tables and lists */

    /************************* * CSS SUPPORT * *************************/

    /* This is for any special formatting that can be applied to any element on any page and have it override the regular formatting for that item. For example, this might have things like: */

    .float-right { float: right; } .float-left { float: left; } .float-center { margin-left: auto; margin-right: auto; } .clear { clear: both } .clear-block { display: block } .text-left { text-align: left } .text-right { text-align: right } .text-center { text-align: center } .text-justify { text-align: justify } .bold { font-weight: bold } .italic { font-style: italic } .underline { border-bottom: 1px solid } .nopadding { padding: 0 } .nobullet { list-style: none; list-style-image: none } 

    /* etc */

    Hope that helps.

    I generally don’t recommend writing on a single line like that though, or like suggested in the link Adam posted, they get very difficult to skim over if they get long. For the examples above, it was just quicker to type them that way so I didn’t have to indent every line.

    For formatting I would recommend this structure:

    .class {     width: 200px;     height: 200px;     border: 1px solid #000000; } 

    And so on, I put the structure of the class or ID at the top, then any other formatting, like the font etc below that. Makes it very quick and clear to skim over.

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

Sidebar

Related Questions

(Leaving aside the question of should you have them at all.) I have always
(Leaving aside hair-splitting about if this is integration-testing or unit-testing.) I would rather first
In the test below, the Bar and Baz blocks contain identical specs. Leaving aside
I am intentionally leaving this quite vague at first. I'm looking for discussion and
I just switched back to c++ after leaving it for awhile and I can't
One of the programmers on our team is leaving for greener pastures. We will
(See my answer below. Leaving this up in case it helps someone else.) What
I think this is a common problem... yet i have not been able to
EDIT Leaving this for posterity, but nearly a year later, to get down voted,
This is a follow-up to my question from yesterday . I have Scott Meyers'

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.