Posts by João Pedro Schmitz • 2,974 points
52 posts
-
7
votes1
answer657
viewsQ: React Component vs Stateless Functional Components
I know that in React there are two types of declaration for a component. React Component export default class App extends Component { render() { return ( <Elemento/> ); } } React Stateless…
reactasked João Pedro Schmitz 2,974 -
10
votes2
answers913
viewsQ: How to change the selected text color and background with the mouse?
When we select a text with the mouse on a website the text is white and blue (I think it may vary from browser to browser). But I would like to know if it is possible to change the color and…
cssasked João Pedro Schmitz 2,974 -
13
votes2
answers243
viewsA: What are Variable Fonts? How do I work with them in CSS?
Before starting it is important to know that the variable fonts are a new font format that offers a lot of flexibility in font style. You know when you download a source from the internet there is…
-
3
votes1
answer195
viewsQ: What are the differences between Object.Freeze() and Object.Seal()?
I know that the Object.freeze() and Object.seal() are used to "freeze" an object. Soon, knowing this, if you run the example below you will see that the two objects were frozen and soon could not…
javascriptasked João Pedro Schmitz 2,974 -
6
votes1
answer1456
viewsA: Section with two colors
You can use a linear-gradient() to achieve the desired effect. The function linear-gradient() CSS creates a consistent image progressive between two or more colors along a straight line. section {…
-
8
votes2
answers4064
viewsQ: Change title style within a tag
You can change the style only with CSS from the attribute title that some HTML tags have? <a href="#" title="Alterar esse estilo aqui">Passe o mouse</a> Note that by default it has only…
-
2
votes2
answers804
viewsA: Insert Option with Java
I made a small example here using only Javascript. See: [...document.getElementById('form').elements].forEach((field) => { field.addEventListener('change', () => { if (field.value ===…
-
6
votes2
answers91
viewsQ: What is the Hanging-punctuation property for and how?
I know the property hanging-punctuation provides a control over typography on the web, but I’m not sure what this control is and how it works. I also saw that the property supports some values, such…
cssasked João Pedro Schmitz 2,974 -
6
votes1
answer481
viewsA: In CSS, how do I align Numbers with Text in Classic Fonts?
The problem of sources As @hugocsl commented in their question, there are some types of sources where the source numbers follow an old pattern, where it is aligned with the source’s ascendants and…
-
6
votes3
answers1297
viewsA: How to have more than one Edge in an Element with CSS
As you yourself mentioned we have the possibility to do using divs, but preferably I think the less HTML best, for reasons of performance. Let’s look at some cases and how to do it. Multiple edges…
-
3
votes3
answers582
viewsA: Triangular div with CSS3
Come on, for that you can use the properties border-left-width and border-right-width. See a similar example you want: .triangle { width: 0; height: 0; border: 0 solid transparent;…
css3answered João Pedro Schmitz 2,974 -
5
votes2
answers1223
viewsQ: What is a nodeList object in Javascript?
I know that in Javascript we have arrays common, which, most languages have. But my doubts are about a nodeList in Javascript. What is an object nodeList in Javascript? How can I access elements of…
javascriptasked João Pedro Schmitz 2,974 -
3
votes1
answer973
viewsA: What is a "definition list" and how are these tags used <DL>, <DT> and <DD>?
The elements <dl>, <dt> and <dd> are used together mainly for: Glossaries; List of definitions; Metadata (set of key-value pairs). But the question is: what do these HTML tags…
-
9
votes2
answers423
viewsQ: All property in CSS. What is it for and how does it work?
I was looking at the CSS properties and met the all, I just found her a little confused. I know it has 4 states. It is them: initial, inherit, revert and unset. But I don’t understand exactly how…
cssasked João Pedro Schmitz 2,974 -
6
votes2
answers1680
viewsA: Disconnect case sensitive in Postgres
Besides the operator like, as Denis pointed out we also have the regular expressions in Postgresql, that make it much easier to search and allow you to "turn off" the case sensitive. To better…
-
7
votes2
answers873
viewsA: How to Make 3D Text with CSS
The secret to making 3D text is in the property text-shadow CSS. See the concept of the property: The text-shadow property adds shadows to the text. It accepts a comma-separated list of shadows to…
-
14
votes7
answers26094
viewsA: What is the difference between parameter and argument?
Most programmers use these terms without distinction of meaning. In practice, saying the word wrong or right will not make the code work or not, it will depend on you, but it is always good to know…
-
5
votes4
answers3500
viewsQ: How to increase the space between text and underline in CSS?
When we’re using a text-decoration: underline we have an underlining applied to it. However my doubt is the following: It is possible to change the distance between text and underline? If yes, it…
cssasked João Pedro Schmitz 2,974 -
0
votes1
answer625
viewsA: Spacing two Ivs with bootstrap
You have several ways to do this. In your case you can use a margin.: The CSS margin property defines the margin area on all four sides element. Abbreviation defining all individual margins all at…
-
0
votes2
answers6101
viewsA: How to border images using Html5+css?
Simple, to place borders on images you can use the CSS property border. For this we will need to define the border size, the type and the color of the border. In the example below we define a 4px…
-
10
votes2
answers598
viewsQ: Counter properties in CSS. What are they for and how do they work?
I was recently studying CSS and discovered the counter-reset and the counter-increment, I just didn’t really understand the properties and I had some questions. Doubts What good is counter-reset and…
cssasked João Pedro Schmitz 2,974 -
1
votes1
answer477
viewsA: How to add a logo to the HTML+CSS menu?
You can use a display: flex; in <nav> menu so that the items stay in the same line. Then just apply a style to the title and put a margin: 0 auto; in his <ul>. * { margin: 0; padding: 0;…
-
6
votes1
answer413
viewsA: Complexity function
Before we simply give the result of the complexity of your example let’s first understand how it works and how we should calculate. So come on! To calculate the complexity of a method or algorithm…
javaanswered João Pedro Schmitz 2,974 -
7
votes1
answer1825
viewsA: Is there any way to bend a text with CSS or leave the text curved in a row?
There are several options to do the desired, but here I will present two solutions (the answer would get very large with all of them). Some of the options are: Canva CSS "pure" CSS with Javascript…
-
4
votes2
answers4076
viewsQ: Mouse Cursor - Javascript and CSS
The cursor: pointer is a CSS property that defines the mouse cursor as a "pointer" over a given element. So far all quiet, it is worth mentioning that in Javascript I can also add a mouse cursor on…
-
2
votes1
answer306
viewsA: <fieldset> flex-wrap does not work properly in Chrome
The problem is that a <button> or <fieldset> is not designed to be a flex container (or grid). Affected browsers: Chrome Edge Firefox (partially corrected in version 52) Opera Safari…
-
7
votes3
answers10029
viewsA: innerHTML VS innerTEXT
The innerText can be understood as: a property representing the "rendered" text content of a node and its descendants. Used as getter, returns approximate the text the user would get if he had…
-
3
votes1
answer1149
viewsA: Close connection to the database
If I use $conexao->query($sql) several times on my page is necessary a $conexao->close(); for each method already holds all calls? No need to close the connection for each…
-
1
votes2
answers768
viewsA: Validate select fields by jquery
To validate the fields of a select you have two options (which I know). The first of these is using a required within the tag of the select (what you’re already doing). <form id="form">…
jqueryanswered João Pedro Schmitz 2,974 -
0
votes1
answer70
viewsA: Form with the CSS
Florence. To create responsive forms you can use a property called media query. That according to the documentation of MDN is: It consists of a media type and at least an expression limiting the…
-
2
votes3
answers465
viewsA: Send email inside if com phpmailer
To send email with Phpmailer you can define a basic structure that will allow sending emails via connection SMTP or POP3. Before you start follow the tutorial below: Download the latest version (in…
-
6
votes4
answers9348
viewsA: Put an IF in CSS
Mariana, as commented earlier with CSS "pure" is impossible to perform an IF condition. But you can use Javascript to change the behavior of the element about a certain situation. See the example…
-
6
votes2
answers505
viewsA: How to limit the interval between two dates in the <input type="Month">?
It is possible to limit the "range" between two dates in the <input type="month">? Yes, it is possible to limit the "range" between two dates. For this you can use the attribute min and max.…
-
1
votes2
answers868
viewsA: Error while adding javascript
Your code is a bit confusing, but let’s see an example of why a sum might not work with Javascript. The first point worth highlighting is that when we catch the value with Javascript it will return…
javascriptanswered João Pedro Schmitz 2,974 -
0
votes1
answer178
viewsA: Send Resume formatted with php
To send email with attachment, in your case a pdf, you can use the class Phpmailer, which is nothing more than a class, or rather library, which allows sending emails via connection SMTP or POP3.…
-
0
votes1
answer294
viewsA: Apache no longer starting after ssl_module enabled?
I’ll share a solution I found for apache not to start after the ssl_module be enabled. Check that the ssl_module is marked as enabled within the options of Apache in the Wamp. Click on ssl_module as…
-
26
votes3
answers1419
viewsA: Comparison of integers in Java
Integer class is part of the class package Wrapper and not of a primitive type of data, such as int. What we call Wrapper is a class that represents a primitive type. For example the Wrapper of int…
javaanswered João Pedro Schmitz 2,974 -
0
votes1
answer289
viewsA: Create an html follow icone
Based on the example of the site you passed as a reference you could do something like this [run the full-screen snippet to view the example]: .fixed-tabs-Whats { position: fixed; right: 0px; top:…
htmlanswered João Pedro Schmitz 2,974 -
0
votes2
answers42
viewsA: Query problem using SQL in PHP
Paul. You probably have a problem with your consultation. Assuming the user typed "Church" in the form and made a Ubmit you will have the following code within the page itself (or another) to…
-
7
votes2
answers10525
viewsQ: Difference between "git add --all", "git add ." and "git add -u"
The command git add --all It seems to me like the command git add ., but I’m not sure they’re the same thing. If they’re not, what’s the difference between them? I am also doubtful about git add -u…
gitasked João Pedro Schmitz 2,974 -
3
votes2
answers525
viewsA: jQuery mask is not working
Anne. You do not call your function, so the mask does not appear in the phone field. Here’s how easy it is to solve: just remove the following line of code $('#phone').mask(SPMaskBehavior,…
-
0
votes3
answers108
viewsA: I need to break the line
You can use flexbox! Makes layout responsive and easy to maintain. For example, you define an initial scope, with some div's. And from them we can define a fixed size using px or as a percentage.…
-
3
votes1
answer41
viewsA: Effect appear without creating scroll bar
So you can use the property overflow in the body of your CSS code. The estate overflow specifies when the content of a block level element must be cut, displayed with scrollbars, or overflows the…
css3answered João Pedro Schmitz 2,974 -
2
votes1
answer151
viewsA: Repeat action every second #PHP
So, you could do using only Javascript, and then take the amount with PHP and save to the database. So you wouldn’t need to run querys every little bit to update the points in the database. See a…
phpanswered João Pedro Schmitz 2,974 -
2
votes1
answer236
viewsA: How to list Rows <table> values
1. How can I list column values in a <table>? Assuming as a basis that you already have a database connection by PHP you could list values from a table in a very simple way. To begin we can…
-
3
votes1
answer93
viewsA: Catch domain via Node/Vue.js
I do not understand your question, even because it is not clear enough. But to get the domain you can use a Javascript property that returns the domain of the page. document.domain By running this…
-
2
votes1
answer520
viewsA: Recaptcha error returns an error in file_get_contents
Using Recaptcha on the site As you did not accurately exemplify how your form is I will create an example of use with a login form: <form action="login.php" method="post"> <input…
-
1
votes2
answers170
viewsA: Problem passing variable from one screen to another
Error resolution: Code of the Login page: <?php session_start(); include_once('classes/Database.php'); if (isset($_SESSION['logged_in'])) { // Abre a página system.php header('Location:…
-
0
votes2
answers170
viewsQ: Problem passing variable from one screen to another
Here’s the deal. I have a problem using $_SESSION in PHP. I’m starting now, so excuse me if I haven’t done the login system the right way. I have a login screen that basically runs this code:…
-
1
votes2
answers792
viewsA: Problem in Bootstrap Directory
The best way is to use a local directory, because if the link of the css page with the bootstrap is changed you will have big problems. Then I recommend you follow these instructions: To get started…