Posts by Hélder • 606 points
15 posts
-
2
votes2
answers506
viewsA: With making CSS a Carbon Fiber type background? Is it possible to make carbon fiber style background with CSS?
Long live! I think this is what you’re looking for: html, body { width: 100%; height: 100%; margin: 0; padding: 0; } body { background: linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,…
-
1
votes1
answer275
viewsA: How do I count values from an array?
Long live! I think this is what you want: function percentagens(arrayNumeros) { var countPositivos = 0, countNegativos = 0, countNeutros = 0; for (var i = 0; i < arrayNumeros.length; i++) { if…
javascriptanswered Hélder 606 -
1
votes1
answer1351
viewsA: Is it possible to get the name and value of all Sessions by javascript?
You cannot access a server session variable on the client side. Now you can "play" a little bit with your code to get the values of the client-side sessions. I’ll give you a little idea of what you…
-
1
votes1
answer65
viewsA: Difficulty with Encoding
Execute the following command before executing the query: if( function_exists('mysql_set_charset') ) { mysql_set_charset('utf8', $con); } else { mysql_query("SET NAMES 'utf8'", $con); } You can also…
-
0
votes3
answers5020
viewsA: How to make an inline form with bootstrap without using tables
With the bootstrap library you can do so: <div class="row"> <div class="col-md-6">.col-md-6</div> <div class="col-md-6">.col-md-6</div> </div>…
-
4
votes2
answers1911
viewsA: Hexagon with css - blurred image
Your CSS does not work well in Chrome and Firefox because the property transform is not yet standard in CSS to work in all browsers we need to add a prefix to the property. .hexagon { position:…
-
0
votes4
answers1122
viewsA: Align 4 Divs in CSS table
I think this is what you want: #div-table { display: table; width: 200px; } #div-table div { display: table-row; height: 100px; } #div-table div .cell { display: table-cell; } .green {…
-
1
votes2
answers992
viewsA: Change the color of a div with a setInterval
I think this is what you’re looking for: var tmp = new Array("1","2","3","4"); var color = new Array("red", "green", "blue", "yellow"); var myvar; var i = 0; setInterval(function() { $( "#right"…
-
2
votes1
answer1811
viewsA: Explodes in Jquery
Long live! I think this is what you want. Search for any div’s that have an "id" starting with "cod_" and enter in the contents of the div what is following the prefix "Cod_".…
-
7
votes3
answers10234
viewsA: border-Radius in table does not work CSS
Long live! I think this is what you want: .table-round-corner { margin-top: 15px; width: 100%; text-align: center; overflow:hidden; border-collapse:separate; border: solid #ccc 1px;…
-
0
votes2
answers2176
viewsA: How to mouse one element and disappear with another without js
Long live! Weight that this is what you want. #a { position: absolute; background-color: red; width: 100px; height: 100px; -webkit-transition: 0.5s; transition: 0.5s; opacity: 1; filter:…
-
5
votes2
answers7097
viewsA: How to create a trigger in Mysql?
To do this you need to create a Trigger that is activated after a INSERT on the table usuario_voto. Example of a Trigger in Mysql: CREATE TRIGGER ActualizaDados AFTER INSERT ON usuario_voto FOR EACH…
-
1
votes1
answer309
viewsA: I need script to delete mysql data with php
Long live! The PHP script to update user positions can do something like this: // Configuração da Base de Dados // Nota: Tens de alterar estes valores de acordo com a tua Base de Dados. $DB_HOST =…
-
12
votes2
answers1626
viewsA: How to use and what is the user-select property for
Long live! The CSS property user-select serves to control which text the user can or cannot select. Values auto: Controlled by the browser, the behavior may be different depending on the browser…
-
3
votes1
answer184
viewsA: What is this content in Bootstrap for
Long live! The * symbol represents all elements of your HTML page. For example, if you wanted to add a black backgroud to all elements of your HTML page you could use the following CSS: * {…
twitter-bootstrapanswered Hélder 606