input fields in a form each with a different width

Author Message

M Farhan

Friday 27 June 2003 1:47:01 am

Hello Everyone,

I have created a form where the data collected is emailed to the administrator, am using the built-in functionality of eZPublish 3.0.2 (through Information Collector). Now the input fields being shown are using the 'box' and 'halfbox' class (defined in the core.css style sheet), changing the size of any of them changes the sizes of all the text fields in the form, but what i need to do is to show different input fields with different sizes.Can anyone suggest as to how can this be achieved???

Thanks in advance.

MF

Paul Forsyth

Friday 27 June 2003 3:29:51 am

Just make some css classes like the following:

For example:

<td class="newbox1">
{attribute_edit_gui attribute=$node.data_map.information}
</td>

<td class="newbox2">
{attribute_edit_gui attribute=$node.data_map.otherinformation}
</td>

In your css file have:

.newbox1 input
{
width:100px;
}

.newbox2 input
{
width:200px;
}

If you are displaying a text-field then use something like:

.newbox1 textarea, .newbox2 textarea
{
width:500px;
}

M Farhan

Friday 27 June 2003 5:23:45 am

Thanks a lot Paul.

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 31 2025 01:21:55
Script start
Timing: Jan 31 2025 01:21:55
Module start 'layout'
Timing: Jan 31 2025 01:21:55
Module start 'content'
Timing: Jan 31 2025 01:21:57
Module end 'content'
Timing: Jan 31 2025 01:21:57
Script end

Main resources:

Total runtime1.2728 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.4922151.2266
Module start 'layout' 0.00520.0040 740.7188220.7188
Module start 'content' 0.00921.2629 961.43754,211.9219
Module end 'content' 1.27210.0007 5,173.35947.8125
Script end 1.2728  5,181.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2919160.0002
Check MTime0.00140.1075160.0001
Mysql Total
Database connection0.00080.062410.0008
Mysqli_queries1.185493.1304570.0208
Looping result0.00060.0477550.0000
Template Total1.221295.920.6106
Template load0.00230.182020.0012
Template processing1.218995.761820.6095
Template load and register function0.00170.134610.0017
states
state_id_array0.00170.129910.0017
state_identifier_array0.00100.075820.0005
Override
Cache load0.00200.1540320.0001
Sytem overhead
Fetch class attribute can translate value0.00200.157120.0010
Fetch class attribute name0.00260.201130.0009
XML
Image XML parsing0.00020.019420.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.0680100.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs