Questions tagged as 'html'

2
answers

How do I get the position of an element that uses the CSS transform property?

Imagine that I have a popup that is centered with transform:translateX(-50%) translateY(-50%) (if you have questions about this solution, you can see more about it here , adapted from these Answers ). So far so good, the ele...
asked by 13.03.2014 / 19:44
3
answers

How to implement a "scroll hijacking"

I have noticed in several modern pages a scrolling behavior that goes up to certain interest part of the content, researching, I discovered that this type of behavior is called "hijacking". The term "hijacking" literally translated means "kidnap...
asked by 06.06.2017 / 15:37
1
answer

How do the Scroll center on the elements inside the container?

Imagine that I have an image gallery that is inside a container . However each image in the gallery has a size as the image: WhatIwouldliketodoisasnap,sothatatthetimeofscrollatsomepointthetargetelementgoestocontainercontrolasthisgif.Noticet...
asked by 25.09.2018 / 20:45
1
answer

how to align the radios inputs in the bootstrap?

link I did it this way: <div class="row"> <div class="col-md-2"> <p>Discordo Totalmente</p> <p><input type="radio"/></p></div> <div class="col-md-2"> <p>Discord...
asked by 18.09.2015 / 21:12
1
answer

Undo the parent element jQuery

How can I prevent a #b click from executing the #link click, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b') }); <script src="https://ajax.googleapis....
asked by 17.12.2015 / 14:21
2
answers

Why do line breaks between elements cause space between them?

I was doing an organization on some code here before commitar and realized that an indentation in HTML caused a problem in my layout, so I went to inspect to find out what I had done wrong besides indenting, and found that the line breaks for in...
asked by 16.02.2018 / 16:54
4
answers

DataTable does not sort correctly

I'm using the datatables plugin to render results in a table. The problem is that the first column has 3 dates: 26/11/2015 19/11/2015 03/12/2015 I need to sort the results of dataTables based on these dates. The correct would be fr...
asked by 29.11.2015 / 02:29
1
answer

Simulate click with jQuery after inserting link via jQuery

I have to open another tab with a link that is returnable from PHP to jQuery. I've used window.open but it asks to release popup and the client does not like it at all. So I thought of doing, when jQuery receives the link, it chang...
asked by 25.11.2015 / 03:25
1
answer

Bootstrap side menu unconfigured in the mobile version

I'm in the fight to make a website and present it in my TCC. I separated the sections of the site (body, head, header, footer ...) into isolated files to be able to move more easily. I took great care to separate all the right elements in each f...
asked by 16.10.2015 / 02:08
1
answer

How to make an image "loose" inside a div

I need to leave a "loose" image within div on my mobile site. The div has fixed dimensions but the image is much larger, so it would have to be something similar to iframe , however, without scrolling and the user can move th...
asked by 20.10.2014 / 18:51