Questions tagged as 'html5'

3
answers

Responsive font according to text size

How can I make a responsive font according to the size of the text? I have a site: radioturn.com.br The name of the song is updated constantly, I would like to remove the mark and let it stop, however, some songs are too big and do not fi...
asked by 08.01.2017 / 20:16
5
answers

How to align a footer element at the bottom of the page?

I have a page where there is a div with multiple contents inside, which change according to the user's desire. Below is another div which is the Footer. If I put a position: relative , the footer will adjust its position a...
asked by 31.08.2014 / 23:44
4
answers

How to change the color of a select when selecting an option

I have a select and I am trying to change the color of it when selecting an option (for example I'm changing the color to red ). Using some attributes like hover , focus , active and checked I can even do what I w...
asked by 24.01.2017 / 14:05
2
answers

How to create a drawing in open book format with content inside?

I need a drawing of an open book with content inside, as shown below: JUST WITH CSS!     
asked by 20.07.2015 / 21:54
2
answers

Use global variable in more than one js file

I have the file GeraGridDados.js and in this file I created a global variable and a function. nomeTela = ""; function redirecionaTela() { //redireciona para tela que chamou a tela de Dados. location.href = nomeTela + ".html"; };...
asked by 08.12.2014 / 14:15
3
answers

Checkbox style with subway style

I need to change my checkbox so that it is identical to the following image: It should look like this when it is marked, when it is not marked, it removes the entire border and appears at the end. I did not insert code because I coul...
asked by 13.08.2015 / 19:32
2
answers

How to mask an input in HTML5?

For example ... I want a input unique for phone numbers. When typing the DDD it automatically receives the parentheses: (xx). When typing the rest of the numbers it splits with a hyphen, for example: (xx) abcd-efgh. And in the cases of st...
asked by 18.02.2015 / 17:33
2
answers

@ CSS font-face installs the font on the computer or just uses it on the website?

I was told that when I use @ font-face on a page and someone accesses it, the operating system downloads and installs the font. I happened to notice the following: when creating a file with @ font-face and access, the font appears correctly,...
asked by 31.03.2014 / 02:25
2
answers

Font-size: Leave a font 100% of the size of the DIV

I'm creating banners for printing and I came across a problem. I need to set a fixed div and height div, for example: #papel {width: 297mm;height: 210mm;border:1px solid red} Within this div, I have a SPAN #papel span{font-size: 9vw;bo...
asked by 16.05.2016 / 22:41
3
answers

How to convert a String to Int in Javascript?

HTML5: <!DOCTYPE html> <html> <head> <title>JSTest</title> <meta charset="UTF-8"> <script src="JSource.js"></script> </head> <body> <input type="number" id="myinput...
asked by 11.06.2016 / 01:34