• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Free Text Alignment

Free Text Alignment 10 years 3 weeks ago #30959

  • Kasparek
  • Kasparek's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
When inserting Free Text field into a form, it is not aligned to the left side of rsform-block element. This behavior is most probably caused by a fact that a caption is expected for any form field, but a Free Text field doesn't contain a caption. What is a best way how to override this behavior within Responsive CCS3 Layout? I suppose that it will be needed to override the following CSS markup, but I don't know how?

.formResponsive .formHorizontal .formControls:first-child {
*padding-left: 160px;
Last Edit: 10 years 2 weeks ago by Kasparek.
The administrator has disabled public write access.

Free Text Alignment 10 years 2 weeks ago #30962

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
This is happening because the label still has a width defined even if it's empty. You can easily modify this by adding some code in CSS and Javascript section of your form. So, head to Components >> RSForm! PRO >> Manage Forms and edit your form. In your Properties tab click on CSS and Javascript and add the following style in the CSS field:
<style>
.rsform-block-freetext .formControlLabel{
width:0!important;
}
.rsform-block-freetext .formControls{
margin-left:0px!important;
}
</style>

Where the rsform-block-freetext class contains your freetext component name. So if you name your freetext component "test" your class will be rsform-block-test.
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: Kasparek

Free Text Alignment 8 years 3 months ago #36252

  • whampt
  • whampt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
What would be the CSS to remove the SPACE RESERVED for the caption when the caption doesn't exist?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!