You are here

ckeditor-caption.css in CKEditor for WYSIWYG Module 8

Same filename and directory in other branches
  1. 7 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-inner {
  6. border: 1px solid #CCC;
  7. padding: 4px;
  8. background: #F3F3F3;
  9. font-size: 0.857em; /* assuming you have a base font size of 14px, this is 12px */
  10. text-align: center;
  11. }
  12. div.caption p {
  13. margin: .25em 0;
  14. }
  15. div.caption img,
  16. div.caption object {
  17. margin-bottom: 5px;
  18. display: block;
  19. }
  20. /** aligned captions **/
  21. div.caption-left {
  22. float: left;
  23. margin: 10px 10px 10px 0;
  24. }
  25. div.caption-right {
  26. float: right;
  27. margin: 10px 0 10px 10px;
  28. }
  29. div.caption-center {
  30. display: block;
  31. text-align: center;
  32. }
  33. div.caption-center .caption-inner {
  34. display: inline-block;
  35. }