Joomla 3.9.16 default contact form you can not change subject input area size whic is longer than name and e mail input sizes.It is not possible to make all the same size by css. The html of subject input is
<input type="text" name="jform[contact_subject]" id="jform_contact_emailmsg" value="" class="required" size="60" required="required" aria-required="true">
But no luck any of codes below does not work even if you created an override.
.contact-form #jform_contact_emailmsg {width: auto!important;}
That problem seems to related to size="60" in components\com_contact\models\forms\contact.xml
.contact-form #jform_contact_emailmsg {width: auto!important;}
should work
.contact-form #jform_contact_emailmsg {width: 100%;}
Joomla 3.9.16 default contact form
That problem seems to related to size="60" in components\com_contact\models\forms\contact.xml
I just want to be able to style it using css. So main problem is that subject field is much longer than name and e mail fields just above it. I want them to have the same sizes. I couldnt be able to achieve it via css or contact form override until changing xml file.
Well That should be protostar (bootstrap v2) I am using t3 blank template (bootstrap v3). I do not want to give a spesific width in pixels for both text fields because of mobile screens. The width vlue of name and mail box is auto when I make subject width auto like them it does not align because it is 60 in size in XML see attached images. Protostar has a spesific width value of 206 px.
Well That should be protostar (bootstrap v2) I am using t3 blank template (bootstrap v3)
Then you are here at the wrong place to post your issue. github.com/joomla/joomla-cms is only for core issues, not 3rd party extensions.
Because your issue is not reproducable with Joomla core: Please close here and ask in a forum like https://forum.joomla.org/
BTW: I'm using Bootstrap 4 menawhile in Joomla 3 and can't reproduce the issue. And used BS3 for a long time and could also adapt the contact form without issues.
I think that is a core issue because the default size of subject area is 60 when the others (name and e mail inputs) are 30. When you try to use width:auto;
command for all input areas it does not work. You can recreate the issue with protostar also (see screenshot). The Screenshot of protostar using width auto for input areas. If I give a spesific width like 80% it will cause problems on smalll screens if I give 600 px it will be okay for desktop but may cause problem on small screens again. So they all should be the same size in default for those who do not want to use a spesific size in pixels.
@JoomlaTema Your CSS rule to set width to 100% will not work:
.contact-form #jform_contact_emailmsg {width: is 100%;}
Please try this:
.contact-form #jform_contact_emailmsg {width: 100%;}
My code is already like this .contact-form #jform_contact_emailmsg {width: 100%;}
just mistyped above.
@JoomlaTema Have you checked for @media
queries that possibly overwrite your width size when browsing on small screens?
I've just set up a fresh Joomla 3.9.16. All input fields have the same width.
So there must be something in your template - and override of the contact form or an override of a input field which causes a difference.
You better ask in the forum. This is not a issue of Joomla 3.9
closed as no core issue
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-04-20 13:56:59 |
Closed_By | ⇒ | alikon |
What is your exact expectation if you set
width: auto !important
and remove thesize
?That doesn't mean that the field is growing while you enter a long email address (as far as I've tested your issue with several browsers).
And the size has no influence on the length of the entered text. And it can be easily overruled by CSS (width, max-width, min-width).