Questions tagged as 'html'

1
answer

What is the use and how to use the "display: contents" of CSS?

Recently I saw that there is a new type of display in CSS display: contents , but I did not understand its intention to use it? link It seems to be just to remove the CSS from the container ... But is that what it's all about...
asked by 20.12.2018 / 13:55
1
answer

Pseudo elements :: after and :: before work in which input types

I would like to know if there is any documentation or article that says where exactly we can use ::after and ::before I have already seen that in the <img> tag, for example, it does not work. I believe it does not w...
asked by 14.12.2017 / 18:53
2
answers

Does Google index images in SVG (inline) or Base64?

I was thinking of turning a website logo into SVG, but I was thinking of using it in direct inline as a code inside the <svg> tags.
asked by 20.09.2018 / 18:28
3
answers

How do I set a max-width to a div that increases and decreases proportionally?

My% w / w that increases or decreases proportionally is in the style of: padding-bottom: 75%; Look at this example: JSFiddle What I want is that the div that grows proportionally will lock the size when it hits the footer. If...
asked by 06.02.2014 / 15:09
2
answers

How to animate display of dynamic-size elements with CSS only?

I'm building a website that has some state transitions using only CSS. In one of them the user clicks on the header and the div below displays or hides. In the other there is a sequence of images and clicking on the current image it moves...
asked by 03.12.2015 / 03:58
4
answers

How to get page load percentage?

How to get the size of a page and how it was downloaded to calculate the percentage of your upload. But I would not use any framework , just pure JS. I actually want to try this .     
asked by 17.11.2014 / 20:37
2
answers

How can I turn line breaks into br / in JavaScript?

In PHP, we can convert a line break to a <br/> through the function nl2br . What about JavaScript? How can I do this in a secure way? I decided to ask the question because I do not know if a simple replace("\n") f...
asked by 13.10.2015 / 15:36
3
answers

How to put Html snippet on all children elements except the last one?

I have a dynamically generated table, and I want to put input inside every td . I can get the id of tr , so I do: $("#id").children().html("<input type='text' value='" + valor + "' />"); So it puts a input wi...
asked by 12.01.2016 / 14:47
3
answers

Writing and reading file via JavaScript

Is it possible (if so how) to do the following method with JavaScript? The person types in a form some arguments, When you click send it will execute a JavaScript code, In this code the function will get the form information and will ope...
asked by 03.03.2014 / 23:18
1
answer

Place text side by side

I do not know if it's possible, but I'd like to know if I can get a text divided into two columns?     
asked by 02.03.2015 / 11:16