4 Replies Latest reply on May 26, 2010 6:28 AM by Nick@Tag

    Set font weight in search input field

    Nick@Tag Level 2

      RH8 HTML

       

      Hi all,

      I have set the search label for the search input box on the top toolbar to be white and bold. Now I notice that the search text is bold, and black. Im trying to find the setting where I can set this back to normal font weight. bold just doesnt look good.

       

      Ive looked through the skinny on skins, but it doesnt cover this, and I cant find the code anywhere.

       

      Thanks for any tips.

       

      Nick

       

      search.gif

        • 1. Re: Set font weight in search input field
          Willam van Weelden Adobe Community Professional & MVP

          Hi,

           

           

           

          I guess your're refering to SetButtonFont("searchform", etc ) in whskin_tbars.jtm. You can modify it to change the style.

           

           

           

          Note: You can also change most of this trough the RH skin editor.

           

           

           

          Greet,

           

           

           

          Willam

           

           

           

          This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

          • 2. Re: Set font weight in search input field
            Nick@Tag Level 2

            Yes and No.

            I want the SEARCH label to stay bold, but the text entered to be normal. The Skin editor only allows me to set a single font type that controls all.

             

            Looking at whskin_tbars there 2 lines of code

             

            setButtonFont("searchform","Tahoma","8pt","White","Normal","Bold","none");
            setButtonFont("searchform","","", "","","","",true);

             

            but any changes affect both im guessing that the top one controls the label, and the bottom is the entry box.

             

            I have tried the following and none work.

             

            setButtonFont("searchform","","", "","","","Normal",true);

            setButtonFont("searchform","","", "","","Normal","",true);

            • 3. Re: Set font weight in search input field
              Willam van Weelden Adobe Community Professional & MVP

              Hi,

               

               

               

              I hope that I now understand correctly what you want to achieve. In the style block in whskin_tbars.htm, add:

               

               

               

              input.inputsearchform {font-weight: normal;}

               

               

               

              Leave the scripts as they are. The caption will now bold. (If you set that with setButtonFont.) Whatever’s in the box is normal.

               

               

               

              Greet,

               

               

               

              Willam

               

              This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

              • 4. Re: Set font weight in search input field
                Nick@Tag Level 2

                Perfect, thank you very much!

                 

                 

                 

                This e-mail has been scanned for all viruses by Star.