Posted By

AlexWolfe on 12/28/08


Tagged

css standard floats clears


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rwczippy


CSS Standard Commands


 / Published in: CSS
 

This is a general set of style sheet commands that you can add to your CSS. It basically creates styles for very general actions that we take when creating layouts. This will make it easy to float, clear, and position elements by giving them a generic class and not having to individually select the element.

  1. /*STANDARD COMMANDS
  2. === === === === === === === === === === */
  3. .clear {
  4. clear:both;
  5. }
  6. .left {
  7. float:left;
  8. }
  9. .right {
  10. float:right;
  11. }
  12. .block {
  13. display:block;
  14. }
  15. .inline {
  16. display: inline;
  17. }
  18. strong {
  19. font-weight: bold;
  20. }
  21. em {
  22. font-style: italic;
  23. }
  24. .dull {
  25. color: #999;
  26. }
  27. .dark {
  28. color: #333;
  29. }
  30. .invalid {
  31. color: #F00;
  32. font-weight: bold;
  33. line-height: 92%;
  34. font-size: 85%;
  35. }
  36. .valid {
  37. color: green;
  38. line-height: 92%;
  39. font-size: 85%;
  40. }

Report this snippet  

You need to login to post a comment.