data/TWiki/PatternSkinCssCookbookEditTableStyle.txt
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/PatternSkinCssCookbookEditTableStyle.txt	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +%META:TOPICINFO{author="TWikiContributor" date="1134249079" format="1.1" version="3"}%
     1.5 +
     1.6 +---+!! PatternSkinCssCookbook Recipe: [[TWiki:Plugins.EditTablePlugin][EditTable]] style
     1.7 +
     1.8 +*Cookbook example to illustrate control over !EditTable edit styles.*
     1.9 +
    1.10 +   1 !EditTable uses a monospace font in edit mode to make the input text width correspond to the set width of the table columns. The attached example style makes the text  more readable by changing the monospace font to a naturally spaced one.
    1.11 +   2 !EditTable table cell content is vertically centered. The example style makes the content aligned at the top.
    1.12 +   3 The example style gives the input fields a background color so that they stand out more.
    1.13 +   
    1.14 +Test table:
    1.15 +
    1.16 +%EDITTABLE{format="|textarea, 8x40|text, 40|"}%
    1.17 +| *Head1* | *Head2* |
    1.18 +| *Hamlet:* So much for this, sir; now shall you see the other.<br />You do remember all the circumstance? | *Horatio:* Remember it, my lord! |
    1.19 +
    1.20 +
    1.21 +<div class="twikiHelp">
    1.22 +This line loads the extra style definition:
    1.23 +<verbatim>
    1.24 +   * Set USERSTYLEURL = %ATTACHURL%/edittable.css
    1.25 +</verbatim>
    1.26 +You can write this line in %SYSTEMWEB%.TWikiPreferences, in WebPreferences, in your user topic or on a single page.
    1.27 +</div>
    1.28 +
    1.29 +
    1.30 +
    1.31 +%META:FILEATTACHMENT{name="edittable.css" attachment="edittable.css" attr="" comment="" date="1134249078" path="edittable.css" size="388" stream="edittable.css" user="TWikiContributor" version="1"}%