You are here

caption-filter.css in Caption Filter 6

Same filename and directory in other branches
  1. 7.2 caption-filter.css
  2. 7 caption-filter.css

Caption filter default styling for displaying image captions.

File

caption-filter.css
View source
  1. /**
  2. * @file
  3. * Caption filter default styling for displaying image captions.
  4. */
  5. div.caption,
  6. div.caption-width-container {
  7. max-width: 100%;
  8. }
  9. div.caption-inner {
  10. border: 1px solid #CCC;
  11. padding: 4px;
  12. background: #F3F3F3;
  13. font-size: 0.857em; /* assuming you have a base font size of 14px, this is 12px */
  14. text-align: center;
  15. max-width: 100%;
  16. width: auto;
  17. }
  18. div.caption p {
  19. margin: .25em 0;
  20. }
  21. div.caption img,
  22. div.caption object {
  23. margin-bottom: 5px;
  24. display: block;
  25. }
  26. /** aligned captions **/
  27. div.caption-left {
  28. float: left;
  29. margin: 10px 10px 10px 0;
  30. }
  31. div.caption-right {
  32. float: right;
  33. margin: 10px 0 10px 10px;
  34. }
  35. div.caption-center {
  36. display: block;
  37. text-align: center;
  38. }
  39. div.caption-center .caption-width-container {
  40. display: inline-block;
  41. }