Doubt regarding default width of button element

44 views
Skip to first unread message

balu chandra

unread,
Apr 29, 2018, 4:06:50 AM4/29/18
to TiddlyWiki
Is there a default width size for the button element? because the two codes below give the same result. Anyway to override the default width settings of the button element?


<$button style="width:1px;height:10px;"></$button>

<$button style="width:5px;height:10px;"></$button>

Mat

unread,
Apr 29, 2018, 4:37:31 AM4/29/18
to TiddlyWiki

<$button style="width:1px;height:10px;"></$button>

<$button style="width:5px;height:10px;"></$button>

Those widths are so small that the internal padding is even bigger. Besides, they are empty buttons without any label. I.e the width above do work but you must also set "padding:0" for them.

<:-)

Pit.W.

unread,
Apr 29, 2018, 5:34:25 AM4/29/18
to tiddl...@googlegroups.com

It seems that by default the buttons have a padding. Try

        <$button style="width:1px;height:10px;padding:0;"></$button>
        <$button style="width:5px;height:10px;padding:0;"></$button>

and you will see a tiny difference.

Pit

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c023b578-489b-47c5-a53e-38eb07d7e26a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



_________________________________________________________________
________________________________________________________
Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de


balu chandra

unread,
Apr 29, 2018, 9:23:11 AM4/29/18
to TiddlyWiki
Brilliant .. works like a charm .. thanks a lot ..
Reply all
Reply to author
Forward
0 new messages