Guest User

Untitled

a guest
Nov 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  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. */
Add Comment
Please, Sign In to add comment