Skip to content

Instantly share code, notes, and snippets.

@ro31337
Created September 10, 2015 23:53
Show Gist options
  • Save ro31337/6f3f0058ff63e4dc037d to your computer and use it in GitHub Desktop.
Save ro31337/6f3f0058ff63e4dc037d to your computer and use it in GitHub Desktop.
What's better: (1) or (2) ?
***********
*** (1) ***
***********
=== html ===
...
<body>
<div class="component-a">
</div>
<div class="component-b">
</div>
</body>
...
=== css ===
.component-a, .component-b {
width: 100%;
}
***********
*** (2) ***
***********
=== html ===
...
<body>
<div class="width100">
</div>
<div class="width100">
</div>
</body>
...
=== css ===
.width100 {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment