Questions tagged as 'css'

1
answer

CSS recognizing Javascript variables within html, is it possible?

For example, I have a script that takes the mouse coordinates: function posicaoMouse(ev){ ev.preventDefault(); var x = ev.clientX; var y = ev.clientY; console.log(x); console.log(y); }...
asked by 20.10.2017 / 14:05
1
answer

Filling the bar?

How do I make it when I open the site with this code, it already "fills" this bar and remains filled, without having to keep the mouse over? div { width: 50px; height: 50px; background: red; -webkit-transform: width 2s;...
asked by 29.09.2017 / 23:08
2
answers

Validate input to only receive numbers with jquery?

I need this input to only receive numbers: <input class="form-control input-sm " placeholder="número" maxlength="4" type="text" ng-model="numero.nJogo" /> This I need to get only values with this formatting (20.00) <input class...
asked by 30.12.2015 / 03:42
2
answers

Draw image using css

I would like to know if you would like to draw the image below using only css? Iwouldliketocreateabuttonlikethis     
asked by 28.07.2015 / 14:18
1
answer

How to do ranking with PHP

Well, I have a problem, I know how to pull the ranking and everything. My doubt is that I'm going to pull the 6 with the highest score, and I wanted the top 3 to have a different background, like: Whats the first thing: yellow; O second...
asked by 26.07.2015 / 04:17
2
answers

Layout with div diagonal and responsive

I need to create a layout and make the divs diagonal and responsive (100%), as in the example below: ContentfrominsidehastostayhorizontalAnyideas?Suggestion? JSFiddle for editing     
asked by 20.07.2015 / 16:55
1
answer

Text effect or paragraph loading [duplicate]

Hello. I've been watching on several sites. Facebook, Dropbox and various frameworks that use css and js an effect that appears before text is loaded. I hope you understand. Thanks     
asked by 03.01.2017 / 02:03
2
answers

Perfect centering of elements using transform: translate style

In another question I asked before, a user gave me an example of how I could perfectly leave a html button on the screen. It was in this question: How to position a button anywhere on the screen in html He simply did: #centralizar{...
asked by 12.04.2018 / 21:45
2
answers

CSS for different browsers

I'm building a custom%% of% +% with custom%. The problem is that each browser interprets the code differently. My final intention is to make the label appear to be just a single line. Chrome and Opera are correct. Already in IE and Firefo...
asked by 05.01.2015 / 18:48
2
answers

CSS style for chat with messages from more than one line

Good morning, I have a doubt, in which I'm already working for some time, I'm new to working with html and css, I'm doing a chat (it's already finished), now I'm defining the styles to leave more [1]] [1], for example I have so, if the message h...
asked by 07.05.2018 / 13:36