6
I’m implementing a few tooltips on a contact form I am developing. It turns out that when it is loaded in lower resolution (below 767px), it is cut tooltips. This is due to the fact of tooltips have had their direction set by data-mytooltip-direction="right"
. Notice that it is set "right" which means (right) in Portuguese.
How to make that below (767px) the
data-mytooltip-direction="right"
change of "right" for "bottom" ?
Example:
<input class="form-control validation js-mytooltip" data-mytooltip-custom-class="align-center" data-mytooltip-direction="right" data-mytooltip-theme="light" data-mytooltip-content="O e-mail é importante para o acompanhamento" id="texto" name="email" type="text" data-email="Email inválido" data-required="Campo obrigatório">
How to make it work?
I reversed the issue, because it changed the meaning of it too much after answering. The ideal is to ask the question with all the details from the beginning, and at most complementary. Change nature, no. And you do it with a certain frequency.
– Bacco
It’s the only solution I see @Bacco via
PHP
, for I sawJavascript
won’t be possible :( I’ll do what then? Another question?– Alexandre Lopes
What you’re gonna do, I don’t know, I’m just explaining what you can’t do. You can ask freely within the rules of the site, but it is no use waiting for them to give you the service ready in the smallest details and keep stirring the question until you get it answered. I already answered once, complemented with a Codepen of the second case, which not even in the question was, and everything works perfectly. And now you want to change the language? It’s unreasonable to use the site this way. The site is here to be used, but already elaborate the question with everything you need from the beginning.
– Bacco
I quoted
PHP
as a better option, ie viaJavascript
orPHP
. Javascript I think is kind of unlikely. When you say "The ideal is to ask the question with all the details from the beginning", it happens that we will only know by testing, then the person may want to change something, because now we know that there are things that cannot be done. That’s why sometimes we change.– Alexandre Lopes