Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Validation & added space below the fileds


Hi,

I am using FormValidation and i noticed that under the fileds being validated, the plugin add more space than the padding and margin defined in the css.

Is there a way to remove this additional space?

Here is an image. The red line circles where the plugin adds more space, while the green line where the space is correct.



Thank you

Paolo


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Could you please provide which Metronic version(v8 or older) and build method(gulp, webpack) are you using?

It seems the FormValidation plugin adds <div class="fv-plugins-message-container invalid-feedback"></div> container for the validation message display but does not remove it when the messages are hidden.

We will check it further and try to find a workaround. Hopefully, the official plugin docs have some pointers for this case.

Regards.



Thank you Sean for your reply.
I am using Metronic 8 demo 1. I am using directly the html version provided. I am not very expert and when i tried to install node js, gulp, etc. followiong the instructions something was not working, so i modified the html.

Btw thanks to your comment i found the solution adding the css code

.fv-plugins-message-container.invalid-feedback {
margin-top: 0px;
margin-bottom: 0px;
}


It works fine now happy

Regards



Hi happy,

Glad to hear that. We will provide an official fix in a future update.
Please keep your customizations logged somewhere so you can add them back when new updates arrive.

Please let us know if you need further help with the gulp setup please let us know.

Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment, you will only need the compile assets, no need to install the build tools dependencies there.

Regards


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(