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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:30:04+00:00 2026-06-09T19:30:04+00:00

I created many basic classes in CSS, like rounded, hidden, red, floated, etc… and

  • 0

I created many basic classes in CSS, like “rounded”, “hidden”, “red”, “floated”, etc… and I use them like if they were LEGO pieces, in order to get the desired result. Why? Because my sites are rendered dinamically, and they may have multiple options. I did not want to create one single class for each possible combination, so I decided to make multiple classes and assign each div for, five or even six different classes. On the other hand, I heard about the DIVITIS issue. I know all the divs I use are neccessary. But my question is:

Is any of those things a problem? I mean, for rendering it on different devices, or render-time, etc…

Use example:

<div class="block spgreen toprounded">
<div class="boxnm left nmquart blue mkPln btn topLrounded"><h1 class="pdg txtCenter">Inicio</h1></div>
<div class="boxnm left nmquart green mkPln btn active"><h1 class="pdg txtCenter">Navegar</h1></div>
<div class="boxnm left nmquart orange mkPln btn"><h1 class="pdg txtCenter">Aprender</h1></div>
<div class="boxnm left nmquart red mkPln btn topRrounded"><h1 class="pdg txtCenter">Compartir</h1></div>
</div>

EDIT:
Each css class has no more than 5 attributes.

EDIT 2:
I based my design on “blocks” and “boxes”. Blocks have overflow auto, and boxes are always floated. They can have 4 different sizes (width): 25%, 50%, 75%, 100%.
Then I created a list of “magic properities”, like: shadow, rounded, and so on… in order to control all the stuff as I. The question is if this can be “wrong” for google to index my pages, or for android phones to render it, or or or…

Some css could be:

div.block{ /* Block lines (will contain floated boxes) */
 position:relative;
 overflow:auto;
}
div.box{
 position:relative;
 margin:.5%; /* +1% (both-sides) */
}
 div.box.nm{
 margin:0;
}

/* Position */
.center{
 margin:.5% auto !important;
}
.left{
 float:left;
}
.right{
 float:right;
 text-align:right;
}
  • 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-06-09T19:30:06+00:00Added an answer on June 9, 2026 at 7:30 pm

    Personally I prefer to name css class for what they are, rather than what they look like, eg:

    <div class="menu">...
    <label class="caption">...
    

    I would then create a class definition that sets red, and set all the classes to it.

    eg .menu, .menu .caption{color:red};

    etc etc.

    That way you can define a completely different style and the css naming stays true. If you’ve got classes called red, rounded and so on, you’re stuck with that styling, or else the names become meaningless.

    Of course, this might not tie in with your “dynamic rendering”, but you’ve not said what that entails.

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

Sidebar

Related Questions

Many programs have created a huge amount of swap files. They annoy me, because
How many version are eric meyer created of his CSS reset and where is
I'm trying to make a basic Address class, that many different other classes can
Newbie question, beware! I'd like to implement a basic many-to-many relationship in Rails and
I have many classes/methods like this: template<typename CharT, typename TraitsT = std::char_traits<CharT> > struct
Basic script idea: Hello. I've created a powershell script which I use to check
I created many instances of a PlotHandler class. An instance must keep it's variables
I have created many tables using <table> tag but don't know how to get
I have created many TestProjects with Visual-Studio-2010 Ultimate . All tests were executed successfully
So, I have created many map applications before, but the one that 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.