NetTalk Central

Author Topic: How to change size of Lookup button  (Read 3578 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
How to change size of Lookup button
« on: July 10, 2012, 07:22:54 AM »
Hi
Through the p_web.SITE.LookupButton. property, I can add text and allot of other property settings, however I can not find the property to change the length of the button as to accommodate  the button text that I wish to use. I have tried setting the button icon to null and not to use the JavaScript UI, however the button text still extends past the button width.  Is the a way to change the button size or to set the button size to a default size that will expand with the button text?

Thanks Rob Kolanko

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11304
    • View Profile
Re: How to change size of Lookup button
« Reply #1 on: July 10, 2012, 11:44:09 PM »
yes, use the "class" property to set it to an appropriate css class.
eg
p_web.SITE.LookupButton.class = 'whatever'
where whatever is a css class you create, with the appropriate width setting.
eg
.whatever{
width:auto;
min-width:5em;
}

Cheers
Bruce