[kupu-dev] Kupu and styles

Duncan Booth duncan.booth at suttoncourtenay.org.uk
Wed Aug 6 19:01:20 CEST 2008


Jordi Martinez <jordim at guellconsulting.com> wrote:

> I'm trying to add a new style to kupu to put some text in a concrete
> class 
> 
> For do that I try to use this way 
> http://www.contentmanagementsoftware.info/plone-book/kupu/styles but 
> seems to be paragraph-only

Try reading the documentation that comes with kupu instead (or as well). It 
includes this:

    	Styles defined under `Styles`_ in the control panel are in the format 
    	``title|tag`` or ``title|tag|class``. e.g.::

    	    Heading|h2
    	    Subheading|h3
    	    Formatted|pre
    	    Pull Quote|div|pullQuote
    	    Highlight|span|highlight
    	    Table Head|th

> 
> Is there a way to implement a style for inline text?
> 
> I want to change this
> 
><p>Some normal text plus some phonetics one</p>
> 
> to
> 
><p>Some normal text plus <span class="phonetics">some phonetics 
> one</span></p>
> 
> How can I do this?
> 

Just add a style to the list:
    	Phonetics|span|phonetics
and then define it in your css.

Not all tags will work but p, div, h1-h6, pre, table, tbody, tr, td, th, 
and span should all be fine.



More information about the kupu-dev mailing list