How to change field sizes

Permalink Browser Info Environment
I've created a basic form which displays with an odd layout (see attached). I want to ensure that the fields' sizes are the same and the form looks 'balanced'. Having reviewed various forum posts I'm aware that I can edit view.css but that will change all forms, not just the one I want to. Also, I assume that view.css will be overwritten with any upgrades/updates.

What is the best way to change the look of a single form?

1 Attachment

Type: Pre-Sale
Status: In Progress
cordschneider
View Replies:
cordschneider replied on at Permalink Reply
cordschneider
As a follow-on to my original question, if I directly edit the HTML in Chrome using Inspect, and add the w100 css modifier to the field, it resizes correctly. For example,

<input type="email" id="your-email-6" name="your-email-6" value="" class="form-control ccm-input-email w100">

How do I add css modifiers to individual form elements?
cordschneider replied on at Permalink Reply
cordschneider
I think I've figured this out but the solution is messy and involves editing the view css file. Is this the only way? Ideally, the Formidable add-on should allow the user to manipulate an element's style...
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

On each element you can add a custom class. You can also add a class to each row the elements are in. And after that you can add a class to the whole form. So there should be enough options for you to add some custom styling.

But when you are using a theme there is always custom styling. I can't satisfy all users who use a theme. So you almost always have to create your own template for each block.

Just create a /blocks/formidable/templates/my_theme/ and add a view.php and view.css. You can create your own style and look.

For more info, please read this:https://documentation.concrete5.org/developers/working-with-blocks/w...

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
EU Cookie Law (1.0.0.4), Formidable (Full Version) (1.0.8), Styled Maps (1.2.3), Supermint Theme (3.4.1.3)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
litespeed

# PHP Version
5.6.33

# PHP Extensions
apc, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.