[pmwiki-users] Can't get WikiStylesApply or maybe even WikStylesCSS to work for html video tag also for div
Christopher Cox
ccox at endlessnow.com
Wed May 17 16:23:02 CDT 2017
Well.. you know I thought we had tried it, but we had so many things
being tried... anyhow, yes the apply=div works. So... ugly, but working is:
|%apply=div
max-width=600px%http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v"Test/Mp4/plex.jpg"
%%|
|I suppose you all might want to see what I've done:|
|https://endlessnow.com/wiki1/Test/Mp4|
|This recipe hasn't been released (yet, under development).|
|
|
|
|
|
|
On 05/17/2017 03:46 PM, Peter Kay wrote:
> Have you tried any of the apply=div, etc options?
> (http://www.pmwiki.org/wiki/PmWiki/WikiStyles) So %apply=div
> max-width=200px%, and so on...
>
> --Peter
>
> On Wed, May 17, 2017 at 4:07 PM, Christopher Cox <ccox at endlessnow.com> wrote:
>> I'd like to do CSS style max-width on a div.
>>
>> So I have:
>>
>> $WikiStyleCSS[] = 'max-width';
>>
>> But I can't get that to apply to a div doing %max-width=200px% <div etc...
>> %%
>>
>> It comes through as a span before the diff.
>>
>> But if I do %width=200px% <div etc... %%
>>
>> We see that getting set for the div as an html attribute <div
>> width="200px"... which is maybe what we don't want, want it as a style.
>> Maybe Wikistyles can't really help us here?
>>
>> Also, we'd like to be able to html attributes on a video tag... so you'd
>> think that would work. So we have:
>>
>> $WikiStyleApply['vid'] = 'video';
>>
>> But again, when we have %width=200px%<video ....
>>
>> It comes through as a span.
>>
>> We tried this:
>>
>> SDV($imgTag, '(?:img|object|embed|video|div)');
>>
>> But still comes through as a span.
>>
>> So... maybe there isn't a good way to get a Wiki Style to be a CSS style vs
>> HTML attribute, but on the latter... is there anyway to get a Wiki Style
>> get applied as an HTML attribute for the video tag?
>>
>>
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list