How do I control the horizontal position of trigger elements on the form?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I control the horizontal position of trigger elements on the form?

Michael_C
This is probably a very stupid question, but it has me stumped! I have a relatively complex form which includes a table and a number of buttons, for  both submit and trigger actions.
I would like some of these buttons to be aligned on the right-hand side of the page. However, this does not seem to be possible!
I am using my own css, and have tried using float:right or float:0px; in the .css file, without success.

I have even tried the brute force option of using align = "right" within the trigger itself, e.g.

<xf:trigger appearance="full" align="right">
    <xf:label>Help</xf:label>
    <xxforms:show ev:event="DOMActivate" dialog="helpDialog"/>
</xf:trigger>

Would anyone have any suggestions? Thanks
/M
Reply | Threaded
Open this post in threaded view
|

Re: How do I control the horizontal position of trigger elements on the form?

Erik Bruchez
Administrator
One way is to place the triggers within an xhtml:div and float the div
to the right. E.g.:

<xhtml:div class="buttons">
  <xforms:trigger>
     ...

.buttons { clear:both; float: right }

-Erik

On Fri, Jun 4, 2010 at 6:43 AM, Michael_C <[hidden email]> wrote:

>
> This is probably a very stupid question, but it has me stumped! I have a
> relatively complex form which includes a table and a number of buttons, for
> both submit and trigger actions.
> I would like some of these buttons to be aligned on the right-hand side of
> the page. However, this does not seem to be possible!
> I am using my own css, and have tried using float:right or float:0px; in the
> .css file, without success.
>
> I have even tried the brute force option of using align = "right" within the
> trigger itself, e.g.
>
> <xf:trigger appearance="full" align="right">
>    <xf:label>Help</xf:label>
>    <xxforms:show ev:event="DOMActivate" dialog="helpDialog"/>
> </xf:trigger>
>
> Would anyone have any suggestions? Thanks
> /M
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-do-I-control-the-horizontal-position-of-trigger-elements-on-the-form-tp2243249p2243249.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws