So with other helpers I can do things like P(db.table.field,
_class="text-centered") to center the text in a paragraph tag generated by
the P helper.
Is there any way to do the same with the MARKMIN helper? I
have {{=MARKMIN(post.caption)}} set for a photo blog app so I can easily
style my photo captions with Markmin. However I'd like the text centered.
Since the MARKMIN helper always wraps text in the <p> I can't center the
text by wrapping the helper in the span or div. The MARKMIN helper does not
accept classes.
Is there a way to do this without creating new CSS rules? My current
workaround is to wrap it in the div with the class "markmin" and add a CSS
rule to P tags within the div. If there's no better way I suggest changing
the MARKMIN helper to accept classes then applying to classes to all of the
<p> tags the MARKMIN helper generates. It would be very useful for clean
style code.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.