How to change field length in Contact Form

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/22/2008 1:39:35 PM
Gravatar
Total Posts 3

How to change field length in Contact Form

Hi!

Then I place Contact Form in the narrow column on my site, the input fields became too long for this column.

The reason is simple, because of attribute: size=50 (HTML source: <input ... type="text" maxlength="50" size="50"...>)

My question is: How and there can I change this value? (Say, to size=20)

 

Thank you!

2/22/2008 2:03:27 PM
Gravatar
Total Posts 18439

Re: How to change field length in Contact Form

Hi,

You can override the width in css.

Open the file web/Data/Sites/[SiteID]/skins/[skinname]/stylelayout.css with a text editor. In a single site installation SiteID will be 1

add this to the bottom of the file

.contactform input { width:100%; }

save the file and refresh your browser.

Hope it helps,

Joe

2/22/2008 3:44:42 PM
Gravatar
Total Posts 3

Re: How to change field length in Contact Form

Thanks, Joe!
Problem solved.

I forgot about the power of CSS... :)

You must sign in to post in the forums. This thread is closed to new posts.