Topic on Project:Support desk

Formatting formlink button?

7
193.29.76.37 (talkcontribs)

Hello,

I would like to know if it is possible (and if so how) to format a #formlink button. The default makes a grey button on the left side. Is it possible to align the button to the right side of the page? What about changing the font or button color? Any help would be appreciated.

Thanks and regards, Triangulus

Ciencia Al Poder (talkcontribs)

Yes, you can use CSS to alter the format of HTML elements. You may need to learn how to write CSS rules. Once you know that, you can post the CSS code in one of the pages described in Manual:Interface/Stylesheets

193.29.76.37 (talkcontribs)

Thanks, for the reply. Can you please provide a hint as to how to create a call to the specific formlink/button element in the Common.css?

If it helps, what I want to accomplish is to add a button to a page which will be located above a right floated infobox element. The called form will create/edit designated content of the infobox.

Details of my formlink:

{{#formlink:form=Review Date|link text=Add or change Review Date|link type=button|target=Topic:Rrt79cmfx3uc9got|popup}}

Many thanks in advance, Tri

193.29.76.37 (talkcontribs)

Correction: The formlink should be {{#formlink:form=Review Date|link text=Add or change Review Date|link type=button|target={{FULLPAGENAMEE}}|popup}}

FULLPAGENAMEE grabbed the name of this thread.

Ciencia Al Poder (talkcontribs)

I don't know what utput produces {{#formlink: }}, since as you can see, it doesn't work here. Providing a link to a wiki where I could see that code working would help.

193.29.76.37 (talkcontribs)
Ciencia Al Poder (talkcontribs)

Wrap the button inside this: <div style="float: right;"> {{#formlink: ... }} </div>

And place it before the infobox.

Reply to "Formatting formlink button?"