You are here

ckeditor-caption.css in CKEditor for WYSIWYG Module 7

Same filename and directory in other branches
  1. 8 css/ckeditor-caption.css

Caption: default styling for displaying image captions.

File

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