Questions tagged as 'css3'

1
answer

Linear-gradient and compatibility with browsers

I'm using the following background css in a menu: background: -webkit-linear-gradient(left, #0260a9, #444); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(left, #0260a9, #444); /* For Opera 11.1 to 12.0 */ background: -moz-linear-g...
asked by 22.12.2015 / 14:01
1
answer

Problem when styling a placeholder based on a class in CSS

I'm trying to make sure I can have several types of placeholder based on a defined class like this: .red, .red::-webkit-input-placeholder, .red:-moz-placeholder, .red::-moz-placeholder, .red:-ms-input-placeholder{ color:red } The proble...
asked by 10.04.2016 / 22:31
1
answer

Using variables

I was looking at the use of variables in CSS, as below, simple thing, so far so good. Then I saw that I could incorporate 'functions', but I only saw it using libs like lesscss and sass . Is it possible to define a function in CSS - like th...
asked by 25.04.2017 / 21:17
2
answers

How do you make self-adjusting images / videos?

Hello, I'm finishing developing an app, I put the images with 450px wide, thinking that it would work, because currently all devices have at least 480x800 resolution, when compiling I went to test on the smartphone with this resolution and the im...
asked by 01.06.2015 / 03:19
2
answers

How to repeat an HTML CSS image

I want to use an image in the header of the site, it is small and I would like to repeat it horizontally throughout the header using CSS. The HTML is as follows: <body> <header> <div id="cabecalho"> <img src...
asked by 26.04.2015 / 21:33
2
answers

JQuery how to set a value in a field with CPF mask?

I have an input using an example CPF mask: $("#cpfDependente").mask('000.000.000-00'); and I'm trying to set a value in the input this way $("#cpfDependente").val(dependente.cpf); It correctly directs the problem is that the masca...
asked by 16.11.2015 / 20:35
1
answer

Media query does not work on non-responsive site

Good afternoon everyone, I put media query css3 to run on a fixed-width site, but it does not work. Only works on responsive sites? link @media only screen and (max-width: 959px) { .tit-h2{margin-left:2px!important;} #rodape{ width: 104%;...
asked by 19.02.2015 / 15:45
1
answer

Is it possible to apply external and internal shadow effect to a box in css3?

For example, I want to add an internal and external shadow effect to a menu button, is it possible? I applied once but one removed the other!     
asked by 16.02.2015 / 16:19
1
answer

Effect of random words

I am looking for an information I am behind an effect whose name I do not know I am trying to search the internet but I do not know the name is very difficult and I do not have a reference so I will explain what is more or less would be this:...
asked by 13.07.2015 / 18:34
2
answers

Jquery or pure JS + CSS3?

The CSS3 has gained so many utilities that previously were only possible with programming, for example: Media queries, fb, keyframe, transition etc ... So what are the advantages, disadvantages and when should I use?     
asked by 29.11.2014 / 03:26