Posts by Sumback • 496 points
23 posts
-
3
votes1
answer1153
viewsA: Change the color of the scrollbar with vertical menu
Example of CSS for how to customize: /* width */ ::-webkit-scrollbar { width: 20px; } /* Track */ ::-webkit-scrollbar-track { box-shadow: inset 0 0 5px grey; border-radius: 10px; } /* Handle */…
-
0
votes2
answers53
viewsA: HTML/ CSS - FORMATTING INFORMATION
To align a text to the left, use: classe{ text-align: left; } To align the right: classe{ text-align: right; } For the text to be justified: classe{ text-align: justify; } To center the text:…
-
0
votes1
answer42
viewsQ: Pass multidimencional array by POST, and use it in PHP to export in CSV
It’s been a while since I’ve been banging my head to solve this problem. I need to pass a multidimensional array by POST to use it in PHP to export a CSV file. Let’s go to the codes! In the form I…
-
-1
votes3
answers57
viewsA: How to make the text inside the button not be tilted?
Try it this way: <!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
1
votes2
answers2172
viewsA: Javascript removing zero numbers at the beginning of a string
This is because the JS ignores the zeros on the left if the type is number, try switching to string, and see if you can use it that way. If you need to use type number, you can use parseint() Here’s…
javascriptanswered Sumback 496 -
1
votes1
answer41
viewsA: Responsive background-image
You’re not setting the responsiveness in your CSS code, try adding this: // Small devices (landscape phones, 576px and up) @media (min-width: 576px) { ... } // Medium devices (tablets, 768px and up)…
-
2
votes2
answers72
viewsA: Mix of CLASS and ID in HTML and CSS
The correct answer is the "E" alternative. No CSS, when using # in front, it’s because it’s using Id, and not class. In this case he is using the Id ""father, and the Id "son", making the attribute…
-
3
votes1
answer51
viewsA: Heigth does not obey the reported value in percentage
When %is used, the element in question seeks to be based on the size of a "parent" element, which in this case would be the <body>. Try to add this: html,body{ height: 100% }…
-
5
votes2
answers2537
viewsA: Page with Smooth Scroll
In your CSS put the code html { scroll-behavior: smooth; } And you won’t need Javascript code.
-
-1
votes2
answers174
viewsA: Remove Edges from element
Change the border-right and the border-left for none.
-
3
votes1
answer89
viewsA: Mysql/PHP - Compare two lists and filter information
Use on SELECT the method WHERE NOT EXISTS() passing another SELECT in with the conditions. Example: SELECT t.id FROM teste as t WHERE NOT EXISTS (SELECT * FROM permissoes as p WHERE p.teste_id =…
-
1
votes1
answer87
viewsA: How to reset select using Javascript?
Use this function for when the modal is closed $('#myModal').on('hidden.bs.modal', function (e) { form.reset() }); Or $('#myModal').on('hidden.bs.modal', function (e) { justificarRemessa() });…
javascriptanswered Sumback 496 -
5
votes4
answers587
viewsA: How to correctly send the value of a null variable in an INSERT?
You can use the query: INSERT INTO tabela(parametro1, parametro2) VALUES('parametro1', NULLIF ('parametro2', ''));
-
0
votes2
answers26
viewsA: Check field on the bank
Maybe it’s because the variable $nome_subdominio was not defined before being used in the function.
-
0
votes1
answer42
viewsQ: SELECT in 3 database tables with specifications
I have three tables in the bank, one for companies, another for employees and another for guides. I am trying to make a SELECT that brings all companies that have any employee linked to it (there is…
-
-3
votes1
answer512
viewsQ: How to use index()?
I have the following code: var addItem = document.getElementById("add-item"); var formItem = document.getElementById("form-item"); var itens = []; var idItem = 0; var idDiv = 0;…
javascriptasked Sumback 496 -
-1
votes1
answer61
viewsQ: Find the Atom shortcut
Today, while I was working on a CSS with Atom, I opened a suggestion of emotes to use through a shortcut accidentally, however I don’t know which shortcut I used and I would like to know. Does…
-
-1
votes2
answers1298
viewsA: Remove array from an array
You can use the delete (array[valor do indice do array que quer apagar]);
-
0
votes2
answers1526
viewsQ: Create array within JSON object
I am creating an array in JSON, and would like to know how to create another array within the object. var objeto; objeto = { "item" : [ { "id" : delDiv, "nome" : nomeItem.value, "cod" :…
-
0
votes0
answers35
viewsQ: removeAttribute Javascript
I am learning Javascript and have made the following function: var marcaAgua = document.getElementById('marca-agua'); var reso = window.matchMedia("(min-width: 768px)"); function pngReso(reso){ if…
javascriptasked Sumback 496 -
0
votes1
answer48
viewsQ: Javascript in several html’s
I am learning and using Javascript and would like to know if it is possible to use scripts from a . js file in several others. html, with functions and everything. If possible, just call the file .…
-
0
votes1
answer75
viewsA: How to show two arrays of a variable - PHP
Got it, got it: <?php while ($exibe = mysqli_fetch_assoc($res)) { ?> <?php foreach ($exibe as $chave => $valor) { ?> <h2> <?= $chave ?> </h2> <h4> <?=…
-
0
votes1
answer75
viewsQ: How to show two arrays of a variable - PHP
I am learning to work with PHP and I would like to know how to show two arrays of a single variable. I am making a selection of the bank that sends me two arrays, I would like to know how to show…