[pmwiki-users] CSS for one (or all) tag in _a single_ page (inline or in head)

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 24 07:26:30 CDT 2006


On Thu, Aug 24, 2006 at 01:56:19PM +0200, Clemens Gruber wrote:
> Hi list,
> 
> how can I change the css statements for one (or all) tag in _a single_ 
> page, I've got an input field
> (:input text NameFrom:)
> 
> and I like to to sometihng like
> (:input text style='width:150px;' NameFrom:) //this doesn't work
> 
> or alternativ for all tags but only in the current page (how can i add 
> css in head?)

By default PmWiki adds "class='inputbox'" to (:input text:) and
(:input password:), so in pub/css/Group.CurrentPage.css you can put

    .inputbox { width:150px; }

This will cause all (:input text ...:) boxes on Group.CurrentPage
to have a width of 150px.

Or, it can be done from local/config.php with

    $HTMLStylesFmt[] = ' .inputbox { width:150px; } ';

Pm




More information about the pmwiki-users mailing list