NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rob Kolanko on July 10, 2012, 07:22:54 AM

Title: How to change size of Lookup button
Post by: Rob Kolanko 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
Title: Re: How to change size of Lookup button
Post by: Bruce 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