Lookup column size

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
shahparz

Lookup column size

Post by shahparz »

When converting a column to Lookup, sometimes
the lookup values exceeds the width of column.

How can we set the lookup values shows complete characters of lookup.

For example the size of the column we fixed is 50
but the characters of the lookup values are 70.

Please suggest something.


Webmaster
User
Posts: 9427

Post by Webmaster »

If you meant the width of the input element (e.g. <select> HTML element), you can add CSS styles to it.


tom
User
Posts: 118

Post by tom »

Hello,

I have the same problem, where can I find it in the edit styles?

thank you


mobhar
User
Posts: 11745

Post by mobhar »

Put your CSS code from here: "HTML" tab -> "Styles" sub-tab -> "Edit styles" button -> scroll to the bottom of "CSS Editor", and find this:

/BEGIN_USER_STYLES/

/* your CSS styles here */

/END_USER_STYLES/


tom
User
Posts: 118

Post by tom »

Hello,

This is clear, can you help me with the code to set the Lookup table defaults to 50px

thank you very much!


tom
User
Posts: 118

Post by tom »

I tested this, without success.

/BEGIN_USER_STYLES/
lookup table
{width: 100px;}
/* your CSS styles here */

/END_USER_STYLES/


mobhar
User
Posts: 11745

Post by mobhar »

You need to inspect the element id of the lookup field.

Let's say your lookup field name is "MyLookupField", then simply put this:

#x_MyLookupField { width:100px }


tom
User
Posts: 118

Post by tom »

Thanks mobhar,
this work!


Post Reply