Questions tagged as 'html'

2
answers

transform: translate is compatible with which browsers?

Usage example works well in modern browsers the doubt is in which versions it will not be compatible. <h2 style="position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%); color:orange;">Centralizado</h2>     
asked by 22.03.2018 / 16:54
3
answers

How to get a class with JQuery array?

For example, in HTML, I have this: <ul class="benefits"> <li>Finalização rápida e fácil</li> <li>Múltiplos endereços de envio</li> <li>Acesso fácil a seu histórico de pedidos e status</li> </ul>...
asked by 18.07.2017 / 21:15
1
answer

'querySelectorAll' does not work

I was doing a test that when clicking the button all 'p' should turn red. Does anyone know what's wrong? function test() { document.querySelectorAll('p').style.color = 'red'; } <!DOCTYPE html> <html> <head> <ti...
asked by 17.07.2017 / 17:27
2
answers

How do I store variables within the browser cache? (JS)

I am making a form and want to store the data that the client types in the browser cache, if the tab is closed the client does not have to type everything again. What is the best way to meet this need?     
asked by 02.10.2018 / 00:30
1
answer

How to put a Search Icon / Button inside an input with Bootstrap?

<form class="form-inline my-2 my-lg-0 pl-3-lg"> <input class="form-control" type="search" placeholder="Pesquisar" aria-label="Search"> <button class="btn btn-dark ml-1" type="submit"> <img src="img/sear...
asked by 07.09.2018 / 19:31
2
answers

How to put a json code in textarea html?

I'm developing a page that shows JSON code snippets in a textarea, but I've seen in some sites that there is some kind of plugin for this kind of view as in the "Errors / Exceptions" tab of this site - > link ... would you like to know if t...
asked by 25.08.2017 / 19:08
3
answers

How to create a button inside an iframe to close it

I needed to create a button inside a iframe in a corner to close it. I have a gallery of images and when clicking on an image will open a iframe , the following code already does this. But now I needed to create a button in a cor...
asked by 11.09.2017 / 13:54
2
answers

Select values from a td with click

The code below is a page, which the user types the name of a city, and checks for similar results. With this, it brings multiple results into a dynamically created table, depending on the data brought back from the results, this is already worki...
asked by 06.09.2017 / 14:49
2
answers

Arrange number of divs / columns per row

I have a responsive website, and I have a list of products. On the desktop it is OK, for example: |PRODUTO 1| |PRODUTO 2| |PRODUTO 3| |PRODUTO 4| |PRODUTO 5| |PRODUTO 6| |PRODUTO 6| |PRODUTO 7| |PRODUTO 8| On the cell phone, s...
asked by 22.05.2017 / 20:42
3
answers

display var Javascript in div html

The code <section class="content"> <span></span> <span></span> <script type="text/javascript" src="../js/purl.js"></script> <script> var vars = geturlvar()['Nome'];//traz...
asked by 25.05.2017 / 20:07