Consider the example below
<html>
<head>
</head>
<body>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
<div class="col-xs-12 col-sm-12 offset-md-4 col-md-4 offset-lg-4 col-lg-4"></div>
</body>
</html>
Is there a better way to structure this code? Like the example shown below. I find it confusing that the bootstrap grid rules need to be specified inline.
<html>
<head>
<style>
.div-alpha
{
col-xs:12;
col-sm:12;
col-md:4;
col-lg:4;
offset-md:4;
offset-lg:4;
}
</style>
</head>
<body>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
<div class="div-alpha"></div>
</body>
</html>