Posts by Taylor Roos • 402 points
20 posts
-
0
votes0
answers39
viewsQ: Align images that link box with dynamic sizes
I am developing a page where I needed to do a type of "Steps", I chose to follow with the cols of the bootstrap and with css Nth Child Odd and Even set the margins and those dotted lines next. The…
-
4
votes1
answer50
viewsA: With CSS is it possible to change the cursor more than once when interacting with the element?
With CSS even, :active would not solve? $(function () { $("#draggable").draggable(); }); #draggable { width: 50px; height: 50px; padding: 0.5em; background-color: red; cursor: pointer; cursor:…
-
2
votes2
answers155
viewsQ: Error printing Styles and scripts in Blade templates?
I have a CMS that is using Elementor to generate pages dynamically, this saves my html css and script in the database. I had a problem with the tag issue <style> and <script> because…
-
0
votes3
answers835
viewsA: Centralize Ubmit in form
You can leave the button inside a div separate and centralize it within. Ex: .baseCenter{ width:100%; display:flex; justify-content:center; align-items:center; } <div class="administrador">…
-
0
votes2
answers72
viewsA: HTML and CSS responsiveness error
You can also use a img{max-width:100%} in your css.
-
1
votes2
answers2477
viewsA: CSS-only carousel: problems centering and fixing size
Something close to that? I owe you the question of the biggest image. html { font-size: 10px; } body { padding: 2rem; background: #F8F8F8; font-size: 16px; } .wrap { max-width: 70rem; margin: auto;…
-
1
votes2
answers962
viewsA: Change the site color in one click!
I think that the best thing to do would be to create classes for each color (e.g., dark, light, default) and when you click the button changes only the class of the parent element, the rest is…
-
1
votes3
answers1130
viewsA: Break line after IMG with CSS
It doesn’t break because it has the align="left". My suggestion is: remove align="left", adds the image inside a div with a class with float:left and when it is less than "such", just remove the…
cssanswered Taylor Roos 402 -
1
votes1
answer21
viewsA: CSS shows only part of the elements of a DIV
Try using the CSS below. I believe the problem is only in the order you call the css or Styles defined in the element itself, so you will need to use !important in some properties: @media screen and…
-
1
votes2
answers41
viewsA: When you click Select All, all checkboxes are marked
I just fixed your code: $(":checkbox[name='Comprou']").prop("checked",true); Was .prop("checked","checked");. I hope to help: function marcarDesmarcar() { if($("#marcarTodos").prop("checked")) {…
jqueryanswered Taylor Roos 402 -
1
votes2
answers55
viewsA: Logical problem when assigning value using JS
Face from what I’ve seen in your job validarSorteio() when I was a couple if, but just below there was another if with a else that made the value go back to the previous one. One if was undoing the…
-
4
votes4
answers3851
viewsA: Effect when passing the mouse
Using the :hover, transform and a transition to achieve a very similar effect: .fundo{ background:#e3e3e3; width:200px; height:300px; padding:5px;…
-
0
votes2
answers608
viewsA: Pause counting - setInterval
function numerosHome(){ var inicial = 0; var location = document.getElementById('participantes'); var contador = setInterval(() => { …
-
1
votes2
answers1219
viewsA: Execute function when arriving in Div
The example below has the div #box hidden with opacity:0, when you reach the scroll in the middle of the div #box I change the opacity to 1; var executou = false; $(document).scroll(function() { if…
-
1
votes1
answer809
viewsA: Change CSS value according to Scroll
Using the .scroll() from jQuery you can take the 'distance' from the top with the .scrollTop() and define properties according to this value. Ex: $(window).scroll(function() { var x =…
-
1
votes3
answers876
viewsA: How to remove a <TR> element from a list created with append?
You can use the deleteRow() see an example: function deletaRow(index){ document.getElementById('tbody').deleteRow(index); } function adicionaLinha(){ var tbody = document.getElementById('tbody');…
-
1
votes2
answers2131
viewsA: Change display property with jQuery
Something like that? function toggleDiv(conteudo){ $('div.conteudo').removeClass('active'); if(conteudo == 1){ $('div.conteudo_1').addClass('active'); }else if(conteudo == 2){…
-
2
votes2
answers458
viewsA: Menu with blocks side by side, a fixed and other fluid
Something like that? .bg-dinamico{ display: flex; justify-content: space-between; background: blue; margin:0px!important; color:white; } <link rel="stylesheet"…
-
0
votes1
answer55
viewsA: Need to Align HTML + CSS imputs
It wasn’t quite specific the way you’d like to line up, but I believe it’s across the div? If yes, you can simply use the width:100% in some css class, that way: body { font-family: Arial,…
-
7
votes2
answers3051
viewsQ: Open link in a new tab without target or window.open
I have a function that does a redirect: vm.pagarUpload = function() { $http({ method: 'POST', url: API.url + 'app/service.php?t=pagarUpload', data: { nome: vm.nomeUpload, email: vm.emailUpload, cpf:…