CSS Standard Commands


/ Published in: CSS
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.