Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 20th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. /* I've long wondered about proper style organization. */
  2.  
  3. /* Using h2's as an example: */
  4.  
  5.  
  6.  
  7. /* =Typography
  8. -------------------------------------------------------------- */
  9.  
  10. h1, h2, h3 {
  11.     font-family: Helvetica, serif;
  12.     margin: margin: 0 0 1em;
  13.     etc...
  14.     }
  15.  
  16. h2 {
  17.     color: blue;
  18. }
  19.  
  20.  
  21. /* =Articles
  22. -------------------------------------------------------------- */
  23.  
  24. article {
  25.     float: left;
  26.     width: 450px;
  27.     etc...
  28. }
  29.  
  30. article h2 {
  31.     color: red;
  32. }
  33.  
  34.  
  35.  
  36. /* =Sidebar
  37. -------------------------------------------------------------- */
  38.  
  39. sidebar {
  40.     float: left;
  41.     width: 225px;
  42. }
  43.  
  44. sidebar h2 {
  45.     color: green;
  46. }
  47.  
  48.  
  49. /* Should all the h2's be put together under Typography? OR should they stay in the area where they'll show up?
  50.  
  51.  Any rules-o-thumb as to how to organize things like this? No matter how I do it, things always seem to end up less organized/intuitive than I'd like. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top