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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:53:45+00:00 2026-05-29T16:53:45+00:00

Version 2 of Twitters Bootstrap UI framework was released today. While I find it

  • 0

Version 2 of Twitters “Bootstrap” UI framework was released today. While I find it very handy, I dislike how non-semantic it is.

I’d rather avoid setting classes like .span6 .table-striped in my HTML.

Since Bootstrap is built on less, I’m expecting that there’s a good way use a project-specific less sheet that can leverage mixins to to ascribe bootstrap-defined goodness to nice semantic class names.

I cloned bootstrap.less into myproject.less, and adjusted the paths in the @import lines, then added the following at the bottom:

#call-to-action {
    .span6;
}

But lessc chokes on it, and complains that:

.span6 is undefined in

Similarly, trying .columns(6) produces the same error (“.columns is undefined”).

Other mix-ins, such as .table, .table-bordered, etc, seem to work fine.

What am I missing? What are the best practices for using bootstrap while keeping non-semantic class names out of my nice, semantic markup?

  • 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-29T16:53:47+00:00Added an answer on May 29, 2026 at 4:53 pm

    ok in less, this is how I figured it out. Its the best I could do, and I couldn’t figure out how to deal with .row semantically, but oh well.

    Basically I created a custom-mixins.less and created a mixin called .col and the variable is @col. So when you write your selector and do something like .col(3); .col(4); .col(5); or something like that. It should create the proper width. I don’t know how this would work for nested columns.

    //custom-mixins.less
    .col (@col) {
      #gridSystem > .gridColumn(@gridGutterWidth);
      #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @col);
    }
    
    //styles.less
    .greetings {
      .col(3);
    }
    

    lessc will generate the following in styles.css

    //styles.css
    .greetings {
      float: left;
      margin-left: 20px;
      width: 220px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the earlier version of Twitter Bootstrap their was a placeholder for the vertical
I am trying to install the new version of the twitter-bootstrap-rails gem (v2), but
I'm reading an article about the recently released Gizzard sharding framework by twitter (
I am using the latest version of Twitter Bootstrap on a project. I have
I am getting this error while using twitter bootstrap. I didn't get this error
Version Control with Subversion recommends the following layout for (single-project) repositories (complemented by this
Version 1.0 of an application has a data model, which is saved/loaded using the
The version of Subclipse (1.2.4) currently available through Aptana's automatic Plugins Manager does not
Short version: I want to trigger the Form_Load() event without making the form visible.
Tomcat (version 5 here) stores session information in memory. When clustering this information is

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.