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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:07:03+00:00 2026-05-24T23:07:03+00:00

Looking at the CSS Zen Garden , I can see how powerful and convenient

  • 0

Looking at the CSS Zen Garden, I can see how powerful and convenient it is to separate design and content. The possibilities seem nearly endless. One can change the style sheet and the appearance of the whole site can be drastically altered.

Let’s say I’m putting together the HTML part of a website. How do I know where to put divs, where to nest them, etc?

For example, let’s say I want to centre something on the screen: I would generally nest 3 divs together: one display:table, one display:table-cell, and one margin-left:auto;margin-right;auto which would have the content.

Let’s say I’m just doing the HTML content, but am not thinking about the design at this stage. How would I know that I need to nest together 3 divs if I don’t necessarily know I will centre it on the screen?

Or if I have one design now with HTML/CSS and I have my divs and spans all set out, what happens in 18 months if I decide to change the CSS for a completely new layout? Sometimes I will have extra divs and sometimes I won’t have enough.

Presumably it would always be better to have more levels than not enough. That way, the worst thing that can happen is that you have a few superfluous divs which aren’t styled and have no visible effect.

Is this generally a problem others have? I know CSS Zen Garden is a special case, but would you generally change the HTML code considerably when you change the corresponding CSS?

  • 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-24T23:07:04+00:00Added an answer on May 24, 2026 at 11:07 pm

    I’ve worked in web development for many years, and over here in Reality things are a bit different from Theory: There is no such thing as separation of content and presentation. You’ll always end up sliding in additional divs.

    You better follow the YAGNI principle. Don’t worry about your CSS as you’re writing your HTML. Come back later and do the neccessary adjustments.

    As for Zen Garden, you’ll find a comment in the source code:

    This xhtml document is marked up to provide the designer with the maximum possible flexibility. There are more classes and extraneous tags than needed, and in a real world situation, it’s more likely that it would be much leaner.

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

Sidebar

Related Questions

I am looking to generate some CSS files dynamically in my Content folder. At
I am looking for a CSS-based web page template where the main content div
I am looking at some CSS and I see the following: #header-nav>ul>li ul li:last-child
I was looking at a css file today and found the following rule set:
I'm looking at a css template that includes .myClass a.extra{...} and .myClass a.extra:hover{...} What
I have been looking at a couple html/css form frameworks like Uni-Form and Formy
I'm looking for a way to use CSS to style everything between the first
I am looking for Java-based Less CSS compilers. On Github, I have stumbled across
I'm looking for a compatible CSS layout that will support the following; +-----+--------+ |
I am looking horizontal dropdown menu pure css based and browser compatible.... i am

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.