[SOLVED]a class to a field for changing the width of a field

More
10 years 8 months ago - 10 years 8 months ago #50103 by Chabi01
Hi everybody,
I have a new question today :)

In the backend form for an item, i use a textarea field without editor.
(Joomla!3.3.6 - FC version 2.2.0 r1974).

I tried a lot of thing, search on Google and the site, but i don't find out how to change the width of the textarea...

If i put "650 px" in widht of the textarea, i have a div of 650px, but no change on the form, like this :
Code:
<div id="container_fcfield_26" class="fcfield_row1 container_fcfield container_fcfield_id_26 container_fcfield_name_generalpresentation" style="width:650px;"> <textarea id="custom_generalpresentation_0" class="" rows="10" cols="75" name="custom[generalpresentation]" aria-invalid="false">My text here</textarea> </div>

How to change the width of the textarea in the backend form ?
I can see a empty class for the field : how to add a specific class to the field (i didn't found where to specify a class for a field...) or how to add
Code:
<textarea id="custom_generalpresentation_0" style="width:650px; class="" rows="10" cols="75" name="custom[generalpresentation]" aria-invalid="false">
if i cannot change the class for this specific field ?

Thanks :)
Last edit: 10 years 8 months ago by Chabi01.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #50107 by ggppdk
Hello

if your textarea has an editor e.g. tinymce or JCE, check the docs of the editor that you are using,

for example the edior small buttons at top of the editing area maybe forcing a minimum width


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #50111 by Chabi01
Hello Georgios,
No, i don't use an editor : just raw textarea.
I have not this problem with JCE for example as i can configure JCE for this.

I can ask this in another way :
- for a input in the backend (text, textarea, etc..), i can see "empty" class.
Is there a way to specify a class for a field to add somme css rules (to get a solution for my problem) ?

Thanks :)

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #50177 by Chabi01
Hi,
So, there is no solution to specify a class to fields ?
Thanks for you help :)

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #50178 by ggppdk
Hello

there is a class already

the container has 3 unique CSS classes and of course unique id

that is why we added them for easier styling and easier JS access


so you only need something like:
Code:
#container_fcfield_26 > textarea{ width: 640px !important }

or
Code:
.container_fcfield_id_26 > textarea { width: 640px !important }


or
Code:
.container_fcfield_name_generalpresentation > textarea { width: 640px !important }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #50188 by Chabi01
Hi Georgios,
I see : in fact, i have to add some class in the used administrator template of Joomla.

But, why do i see in the code an unused class ?
Code:
<textarea id="custom_generalpresentation_0" class="" rows="10" cols="75" name="custom[generalpresentation]" aria-invalid="false">My text here</textarea> </div>
And again, thanks for your help :)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.597 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save