[pmwiki-users] Making a button wikistyle
Peter Bowers
pbowers at pobox.com
Mon Mar 21 09:41:38 CDT 2011
On Mon, Mar 21, 2011 at 3:07 PM, Randy Brown <alongkiss at aprivatespot.com> wrote:
> Is there a way to match the style of the PmWiki's buttons. I need to do that because I want my
> buttons to co-exist on the same form as PmWiki's buttons. It looks odd to have "Save" in one
> style and "Cancel" in another
Links and form buttons are different HTML elements. CSS can be used
to make links look similar to form buttons (as Carlos has shown), but
it's difficult to make them identical.
If you really need your links to look like buttons then I would
suggest defining an alternate link markup (or over-riding the existing
markup) to produce button elements instead of links. You could do
this by creating an individual form for each button with a different
action=X property, but this is probably going to cause difficulties
with having different forms defined in different locations.
One creative alternative I just saw when I briefly googled this looks like this:
<a href="#"><button>Link Text</button></a>
Hope that helps.
-Peter
More information about the pmwiki-users
mailing list