Questions tagged as 'css'

3
answers

Simulate placeholder in IE8

I was reading the documentation here and it seems that the placeholder attribute does not work in IE8. Would you have any way to simulate the placeholder you use? HTML example that does not work in IE8: <input type="text"...
asked by 16.12.2014 / 18:30
3
answers

Adding and removing styles from a particular selection at the click of a button

I have a function in javascript that applies a particular style in some classes, and I would like to know how to do this style by clicking the same button. var botao = document.getElementById("troca"); var cores = document.getElementsByClassNa...
asked by 26.11.2015 / 22:29
2
answers

What is the difference between the css @import and the html link?

I created a file containing css patterns that are used on my system. I would like to know what is the difference between calling css by link or @import like this: /* ou dentro do codEventos.css */ @import "../padr...
asked by 03.07.2015 / 16:20
3
answers

With CSS is it possible to animate text-decoration?

Recently I saw this animation made with SVG, ButIwaswondering,isitpossibletoanimatetext-decoration-style:wavyin:hoverinordertoachievethesameresult? body { font-family: sans-serif; font-size: 2rem; } p {...
asked by 01.11.2018 / 12:14
2
answers

In HTML what is an undetermined Checkbox and how to use this status along with CSS?

As far as I know, a% of% of type input could have three states, checked , not checked and disabled . But it looks like it has a fourth state that is undetermined . See in the image a comparison of the states that Checkbox c...
asked by 11.09.2018 / 18:07
2
answers

How can I simulate a placeholder using a label?

I'm trying to make label simulate a fixed placeholder. The biggest difficulty is to change the properties of label when input gets focus , and input fill in the rest of the space automatically. I tried to...
asked by 01.01.2014 / 21:45
3
answers

An image with display: none is loaded? Do you consume data?

I'm developing a responsive layout and would like to reduce the size of the images as per resolution. I've used display: none but I've seen in inspetor de elementos that it's loading. Is the data of the two images being consum...
asked by 21.08.2017 / 14:43
2
answers

Problem using 'Google Fonts'

I would like to use a Google source without needing an Internet connection. I saw that @font-face has this power. Just drop the font in one of the formats (I preferred .EOT because it is also accepted by IE Browser) and declare it...
asked by 13.02.2014 / 21:12
2
answers

Form validation in HTML5

I'm doing a validation form using HTML5 and its own tags to validate the fields. I'm using the PATTERN , which limits the character type. But it does not work ... Fields are not being blocked. "Code", only numbers and "Name", only letters. C...
asked by 06.03.2015 / 18:12
5
answers

Using jQuery, how to select elements with two CSS classes

I have a div that uses two CSS classes. Here's the HTML: <div class="box1"></div> <div class="box1 destaque"></div> <div class="box2"></div> <div class="box2 destaque"></div> <div class="box3"...
asked by 11.02.2014 / 17:03