Jitender
Jitender

Reputation: 7971

class selector in css

i am working with bootstrap and i am confused with it css. They have class selector in their css code. i dont understand what this code actually does. Does this css apply on only span or what else.

.row-fluid [class*="span"] {
  display: block;
  float: left;
  width: 100%;
  min-height: 28px;
  margin-left: 2.127659574%;
  *margin-left: 2.0744680846382977%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}

Upvotes: 0

Views: 101

Answers (1)

No Results Found
No Results Found

Reputation: 102735

It's a partial attribute selctor, and applies to anything with the string span in it's class name. It's used for span2 and such. For example [class*="span"] will match these elements:

<p class="span"></p>
<p class="spanner"></p>
<p class="espanol"></p>
<p class="span43 blue"></p>

Upvotes: 4

Related Questions