[kupu-dev] Kupu and styles

Jordi Martinez jordim at guellconsulting.com
Wed Aug 20 08:33:35 CEST 2008


Duncan Booth wrote:
> 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.
>
> _______________________________________________
> kupu-dev mailing list
> kupu-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/kupu-dev
>
>   
I try this but doesn't work. Seems that only works with block tags not 
inline like span

Finally I put a button but this is a poor solution

Thanks!


More information about the kupu-dev mailing list