Select boxes (those boxes that present you with multiple options to choose from a dropdown list) are in many places around in PHP-Nuke. An example is the "Modify a Category" select box in the Downloads administration panel (Figure 27-10).
What if you wish to change the dimensions of such a select box? The code that outputs the select boxes is in admin/modules/download.php. Just search the code there for "<select" and you will see them all.
However, there is no way to manipulate the width of a select box in HTML, other than entering a "dummy" option that has a certain length: the width of a select box is determined by the width of the longest line of text beside an <option>! Thus, there is no way to set the width of select boxes except by manipulating the text tags associated with <option>s.
This leads us to the following tip (see How to Change Width of Modify a Category Drop-Down):
Sizing The select box in Downloads | |
---|---|
The very first category that you ever enter in the Downloads Administration Panel should be one with a text long enough to size the box to the desired length. If you choose to enter a "dummy" category like "Choose your Category here" (see Figure 27-11), bear in mind that it will be displayed along with the "right" ones in the Downloads category list. |