Questions tagged as 'html'

2
answers

javascript event to scroll over an area or div

I have a page where an area or div that does not have the side Scrollbar, simply because it is not necessary. I would like to capture the event when the mouse rotates the roulette over that area because I wanted to use the mouse roulette to Zoom...
asked by 12.02.2016 / 15:04
2
answers

Get cursor position with jquery

Is there any way to get the position of the cursor relative to the screen when typing in a textarea? Ex: I type some character, call a jquery keyup function and get the position where the cursor is stopped, relative to the screen? Edit: I...
asked by 18.02.2016 / 16:29
1
answer

Keep variable value between layers of a function

I wanted to make a website where when I click on the image it doubles in size and width, but can only do it once, and if you do more, a warning will appear to prevent it. Likewise, if it is in the default size, you can not decrease it, and a war...
asked by 12.03.2016 / 20:20
1
answer

Show div onclick regardless of clicked button

I know little about javascript and on my page I have a button that, when clicked, calls a div . So far so good, but the function takes the id of the button, that is, if I have more than one button on the page and need to call...
asked by 10.03.2016 / 13:11
1
answer

How to prevent a div from leaving the page, when another div resizes?

My page basically has two divs , one right and one left, the two are with style="position: fixed;" , that is, if I scroll the page, these two divs are side by side, fixed, always visible. But when the div of the left...
asked by 10.03.2016 / 06:26
1
answer

What in and of rem use the html or body tags as a reference?

Reading about, I saw places saying that the In and Rem measures use the html tag as a reference others saying that it is the body tag, but which really is the tag that is used as a reference?     
asked by 01.05.2016 / 16:30
4
answers

Is there a way to set width specified in html as the max-width of this element in css?

The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display: block; margin: 20px auto;" width="40...
asked by 03.05.2016 / 18:40
1
answer

How to capture text from nested divs in an elegant way?

This post explains how to copy plain text to the clipboard using the ZeroClipboard . But a reader came up with a question: how do you get the content of a <div> with multiple child divs within it? When we use the above example...
asked by 29.06.2016 / 22:26
1
answer

What is the compatibility with browsers when using the template tag?

Reference: link Example usage: Javascript: window.onload = function() { var contentHTML = document.getElementById("teste").content; var linha = document.importNode(contentHTML, true); document.getElementById("tabela").appendChil...
asked by 30.06.2016 / 17:41
1
answer

HTML & CSS is it possible to disable the right scrollbar of an html page?

My html page has many objects, but I want to leave all of them so that the scrollbar does not have to appear, is it possible to disable scrollbar?     
asked by 30.06.2016 / 00:16