Center things in MARKMIN

36 views
Skip to first unread message

rif

unread,
Feb 14, 2019, 12:47:22 PM2/14/19
to web2py-users
hey guys,

I am using auth.wiki and I would like to center things (e.g. titles, images) horizontaly on the page. 
I didn't find any documentation on this, does anybody have any hints for me?

thanks,
-rif

Val K

unread,
Feb 14, 2019, 8:58:45 PM2/14/19
to web2py-users
# you can extend MARKMIN using ``...``:<key>

MARKMIN("blah blah  ``Title``:centred blah blah",  extra = dict(centred = lambda text: DIV(text, _style = 'text-align:center;')))

Radu Ioan Fericean

unread,
Feb 14, 2019, 9:03:28 PM2/14/19
to web...@googlegroups.com
Can I do this with auth.wiki?

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/KZ4YjTlzzRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Val K

unread,
Feb 14, 2019, 9:28:02 PM2/14/19
to web2py-users
Yes, just pass it:  
auth.wiki(extra = dict(centred = lambda text: DIV(text, _style = 'text-align:center;')))

but it seems, that page should be edited/updated to get effect 

rif

unread,
Feb 15, 2019, 8:42:40 AM2/15/19
to web2py-users
It worked!

I had to use "title" as "centered" seems to be used but something else, but in the end it worked just great :)

Thank you a lot, you saved my day!
-rif
Reply all
Reply to author
Forward
0 new messages