2

How is it possible to size formfield widths for Joomlas Protostar Template?

<field name="titel"
type="text"
label="COM_COMPONENT_TITEL_LABEL"
description="COM_COMPONENT_TITEL_DESC"
class="inputbox"
size="45"
required="false" />

I've tried different possibilities, but none of them are working. class="inputbox span3", size="10", "input.span3", "inputbox.span3", size="span3"

thx, Perino

migrated from stackoverflow.com Jun 7 '14 at 20:34

This question came from our site for professional and enthusiast programmers.

  • Protostar is for the front-end. What are you trying to do? – FFrewin Jun 7 '14 at 20:44
  • Yes, I know that Protostar is for the front-end. Im creating a formular with different input fields. These input fields should have different widths. One of these fields should be a textarea field. But this is displayed with the standard editor. How can I display the textarea box normal without editor? – Perino Jun 8 '14 at 5:54
  • What's the CSS for your formfield? Do you have a live demo we can look at? – TryHarder Jun 8 '14 at 6:16
3

The following classes can be added to your input field in order to control the size:

class="inputbox input-mini"
class="inputbox input-small" 
class="inputbox input-medium"
class="inputbox input-large"
class="inputbox input-xlarge"
class="inputbox input-xxlarge"

The size="45" parameter seems to be overridden by the CSS class .inputbox, forcing the width to 206px. Adding any of the classes above will solve this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.