(Re)Size of input fields (Contact Us)?

Author Message

Trond Hjelmaas

Saturday 05 February 2005 12:33:51 pm

Trying to resize the input fields in the auto-generated "contact us" for a plain site.

The HTML (part) looks like this when output to browser:
<h2>Your E-mail address (TROND)</h2>
<div class="attribute-email">
<input class="box" type="text" size="20" name="ContentObjectAttribute_data_text_185" value="" />
</div>

The template code is like this:
<h2>{"Your E-mail address"|i18n("design/base")}</h2>
<div class="attribute-email">
{attribute_view_gui attribute=$node.object.data_map.email}
</div>

When displayed on the target site the input field is too big. How can I resize it?

I have tried adding in my own css .box{width=50px;}, but no luck....

Thanks a lot for any help!

Ɓukasz Serwatka

Saturday 05 February 2005 12:58:51 pm

Try this:

div.attribute-email input {
   width: 200px; 
}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 09:02:34
Script start
Timing: Jan 19 2025 09:02:34
Module start 'layout'
Timing: Jan 19 2025 09:02:34
Module start 'content'
Timing: Jan 19 2025 09:02:35
Module end 'content'
Timing: Jan 19 2025 09:02:35
Script end

Main resources:

Total runtime0.9759 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2578152.6250
Module start 'layout' 0.00550.0029 741.882839.4453
Module start 'content' 0.00840.9660 781.3281527.4766
Module end 'content' 0.97440.0015 1,308.80478.1563
Script end 0.9758  1,316.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3480160.0002
Check MTime0.00130.1297160.0001
Mysql Total
Database connection0.00090.089110.0009
Mysqli_queries0.926694.9517540.0172
Looping result0.00060.0589520.0000
Template Total0.942896.620.4714
Template load0.00300.305120.0015
Template processing0.939896.301420.4699
Template load and register function0.00020.022110.0002
states
state_id_array0.00130.136610.0013
state_identifier_array0.00070.073420.0004
Override
Cache load0.00230.2407210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.056020.0003
Fetch class attribute name0.00150.153730.0005
XML
Image XML parsing0.00070.070220.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00100.1067180.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs