Skip to content

Instantly share code, notes, and snippets.

@victoriachuang
Last active May 16, 2016 23:53
Show Gist options
  • Save victoriachuang/b5515802fe847d904b4435eebc28177d to your computer and use it in GitHub Desktop.
Save victoriachuang/b5515802fe847d904b4435eebc28177d to your computer and use it in GitHub Desktop.
<!-- How are you organizing your CSS? -->
<style>
/* What isn't unique between box-1 and box-2? */
.box-1 {
color: blue;
float: left;
width: 500px;
}
.box-2 {
border: 1px solid red;
float: left;
width: 500px;
}
/* Can this be condensed? */
.box-3 {
border-color: green;
border-style: solid;
border-width: 3px;
}
</style>
<!-- Do you NEED an extra div? -->
<section>
<div>
<p>Hello</p>
</div>
</section>
<!-- Inline styling will override external stylesheets and embedded styling -->
<div class="box-2" style="border: 2px dotted blue">
What border will I have?
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment