L
L
lavezzi12016-03-11 11:29:42
Less
lavezzi1, 2016-03-11 11:29:42

Bootstrap grid problem, what to do?

Hello! I copied the mesh files from the bootstrap repository in less format, (there is also less in the project), the mesh is generated with a bang. But the container doesn't have a clearfix. Although the project already uses a mixin for clearfix. I even tried stupidly to insert into the grid files - it does not work. What did you miss?

.clearfix() {
  &:before,
  &:after {
    content: " "; // 1
    display: table; // 2
  }
  &:after {
    clear: both;
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Filippov, 2016-03-11
@lavezzi1

Let 's look at the source :

.clearfix {
    .clearfix();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question