Page 512 - Xara Designer Pro X17
P. 512

512      Web Graphics and Websites

                If there are several states in your button, e.g., mouseoff and mouseover, they need to be
                soft grouped together, so that they stay together when one state is moved or otherwise
                transformed.

                Button margins
                In this section we refer to the „margins" as being the spaces between the button label
                and the ends of the button. For stretchy buttons (those with the „Adjust button widths to
                labels" option switched on)  this is determined by the master button from which you
                create the Navbar. By adjusting the margins on the master button, you set the margins
                for the other buttons in the bar, which are based on it.

                The easiest way to change the margin on the first button is as follows:

                1.   Open the NAVBAR DIALOG
                2.   Turn off the ADJUST BUTTON WIDTHS TO LABELS option, so buttons don’t stretch as
                    label text is changed.
                3.   Change the label on the master button (the first button unless you have multiple
                    button designs in your Navbar – see later section). Choose any dummy label text
                    which is the appropriate length to give you the margins you want on the master
                    button.
                4.   Turn the ADJUST BUTTON WIDTHS TO LABELS option back on again. All buttons get
                    the same margins you set for the master button.
                5.   Set the master button label text back to what it should be.



                Original bar




                Bar with a modified smaller margin


                Bar with a modified larger margin

                If your Navbar has different designs for the start/end (see below for how to achieve that),
                then the start and end designs have their own margins that can be controlled separately.

                Advanced - Editing a Navbar button design
                However your Navbar was created, you can modify the button design it uses. For a
                Navbar where all buttons are the same design, the very first button in the bar is used as
                the master button from which all the other buttons are copied. Therefore by modifying the
                first button design, you modify the design for the whole bar.
   507   508   509   510   511   512   513   514   515   516   517