0

How I could create a "class" that contains .col configurations?

example (NOT real, but is near to that I mean):

html

<div class="myClass">Hello World!</div>

css/less

.myClass{
   col-xs-12;
   col-sm-offset-3, col-sm-6;
}

can you imaginate the potential to the use for the components?

Michel Floyd
  • 18,793
  • 4
  • 24
  • 39
TigerSpirt
  • 161
  • 1
  • 12

1 Answers1

0

In less this is called a mixin. Given the bootstrap template, you would do pretty much what you have above:

.myClass{
   col-xs-12;
   col-sm-offset-3;
   col-sm-6;
}

More on mixins

Michel Floyd
  • 18,793
  • 4
  • 24
  • 39