Posts by Vitor Adriano • 353 points
19 posts
-
0
votes1
answer22
viewsQ: Return values if any record does not exist
I have the tables: tabelaUm [id] [nome] 1 nome1 2 nome2 tabelaDois [id] [idTabelaUm] [nome] 1 1 nome1 1 1 nome2 1 1 nome3 1 2 nome4 1 2 nome5 1 2 nome6 My query: SELECT t1.nome AS n1, t2.nome AS n2…
-
0
votes1
answer57
viewsA: Separate JSP CSS icons
The padding is being applied to the element ul.redes_sociais, and not the items within it (ul.redes_sociais > li). Add that snippet to your CSS: .redes_sociais li { padding: 30px; }…
-
1
votes2
answers941
viewsA: How to modify an item at a specific point on the page? (HTML, CSS)
You can use both jQuery and Javascript. Javascript window.addEventListener('scroll', myFunction); function myFunction() { // Seleciona o elemento alvo var element =…
-
2
votes2
answers54
viewsA: Delay error in transition
Use the transition only in the necessary elements. .service-thumb { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px; } .service-thumb,…
-
0
votes1
answer50
viewsA: Validation of data submitted by the form
How are you assigning the value of input for $key, replace the if(empty($_POST[$value])) { ... } for if(empty($_POST[$key])) { ... } Complete: <?php foreach ($_POST as $key => $value) {…
-
0
votes1
answer647
viewsA: Center in element :after
You can, as said in the comments, add the position: relative in .labelCheckBox and position: absolute in the :after. .divCheckList .labelCheckBox { position: relative; ... } .divCheckList…
-
3
votes1
answer273
viewsA: Button when clicked has effect on other
Add the property vertical-align: top on the selector button, then adjust the margin-top button :active. Jsfiddle button { border: none; background-color: #ded268; border-radius: 50%; padding: 10px;…
-
2
votes1
answer441
viewsA: Checked does not work
The checkbox has to stay before the elements that will undergo change when it is selected. Jsfiddle .classes { width: 100%; height: 70px; background-color: #FFFFFF; } .classes ul { position:…
-
1
votes1
answer44
viewsA: Why is my div getting an extra 40px?
The tags <ol> and <ul>, by default, have 40px of padding-left. You just need to add padding: 0; inside the selector .side{}.…
-
0
votes2
answers702
viewsA: HTML button as selection for questions
I tried to make it as simple as possible. Next time, try to post the code you’re working on, like Leon Freire said, to speed up our side :) Here it is: * { -webkit-box-sizing: border-box;…
-
0
votes0
answers33
viewsQ: Simulate slow connection with WAMP
I found this article which shows how to perform in the browser itself (in this case, Chrome), but does not work when Devtools is closed. Is there any way to do this directly in WAMP for localhost?…
-
3
votes1
answer2688
viewsQ: Dropdown with jQuery
I was looking for a dropdown menu with jQuery and found this example: Jsfiddle It opens and closes normal when I click off the menu or on some item of it, except when I open another dropdown. Any…
-
1
votes2
answers72
viewsA: How do I center the content of an element vertically?
I particularly like to use calc, and here I did as follows: .div-pai .div-filha { top: calc(metade da altura da div pai - metade da altura da div filha) } Follows: .a { width: 300px; height: 200px;…
cssanswered Vitor Adriano 353 -
0
votes3
answers521
viewsA: Margen-top of DIV daughter drives her away and DIV father together
I made a small example, which does not move the Ivs first and second, only the daughter div with the property position: absolute. I imagine that’s what you were looking for. * { margin: 0 auto;…
-
0
votes1
answer79
viewsA: How to add a Transition (fade-in) in this example?
Following the idea of Antonio Alexandre, I made this small example using only CSS: .image { position: relative; } .image img { position: absolute; top: 0; left: 0; } .image img:nth-child(1) {…
-
1
votes2
answers242
viewsA: Double Dropdown Menu does not show the second dropdown
You made the CSS understand that the element with the class .dropdown-content-2 was inside the element with the class .drop-secundario on line 104: .dropdown-content a.drop-secundario:hover…
-
1
votes1
answer215
viewsA: Sizes of Divs ( Width and Height ) with Relative and/or Absolute positions
To prevent internal Ivs from leaking, try using *{box-sizing: border-box;} in the CSS * { box-sizing: border-box; } .main-content{ width:100%; display:flex; flex-direction:column; padding:6px 0;…
-
0
votes2
answers985
viewsA: How to make this icon with pure CSS?
Using the Leon Freire example, you can remove the Ids from the elements and change the rules in the CSS to act in the classes .block:nth-child(1) { top: 10px; z-index: 3; } .block:nth-child(2) {…
-
1
votes3
answers351
viewsA: Put sub-menu under the right li
The element <li> of the class ". menuPrincipal" must be "position: relative" to control the positioning of an element with "position: Absolute" inside it, preventing it from getting lost in…