[kde-doc-english] centering caption text

Kurt V. Hindenburg kurt.hindenburg at kdemail.net
Mon Feb 14 01:51:39 CET 2005


I think it would be a good idea to center the image caption text.

<div class="caption"><p>Konsole with 4 terminal sessions open.</p></div>

The problem is that the <p> negate the centering.
If the <p> and <div> are swapped, the centering works.  I don't know enough 
about docbox/xslt/whatever to code this.


RCS file: /home/kde/kdelibs/doc/common/kde-default.css,v
retrieving revision 1.48
diff -u -p -r1.48 kde-default.css
--- kde-default.css     31 Jan 2005 22:31:39 -0000      1.48
+++ kde-default.css     14 Feb 2005 00:46:26 -0000
@@ -268,7 +268,9 @@ DIV.mediaobject { /* float: right; */
                                   position _images_ */
                   }

-.caption { margin: 0em 2em 3em 2em; }
+.caption { margin: 0em 2em 3em 2em;
+           text-align: center;
+         }

 .inlinemediaobject { vertical-align: baseline;
                     padding-right: 1em;


  Regards,
      Kurt



More information about the kde-doc-english mailing list