Questions tagged as 'css3'

2
answers

Create button with octagonal border using only html and css

I need to create a button with octagonal borders as in the attached example, but I was not successful. I need a white border and the background is free so you can change color when you apply :hover . I count on your help, thank you....
asked by 19.01.2016 / 22:12
2
answers

Javascript counter for clicks

Suppose I have the following counter: <button class="btn btn-primary" type="button"> Curtir <span class="badge"> 4 </span> </button> I want to apply this code below: function criaCounter(init) { var count =...
asked by 08.04.2016 / 17:02
1
answer

How to adjust Background to fit inside container without cutting anything?

I have a pattern that repeats in both X and Y that I want to use as background in a div , but I would like it to fall within div as shown in the image. (I want you to have only full stars in the background) . I wanted the%...
asked by 02.10.2018 / 20:30
1
answer

Css in all options except one

I'm trying to apply a css in an option tag. In case you would like only the options that have value starting with 2 to be in blue, like the example below: $('.select-user option').each(function(){ if(this.value.startsWith('2')){...
asked by 16.08.2018 / 15:17
1
answer

How to leave the text at the center of the css3 ellipse?

How to leave this text in the middle? css: <style> .bg-maroon, .bg-aqua, .bg-yellow, .bg-red, .bg-teal, .bg-purple, .bg-orange, .bg-green { text-align: center; height: 70px; border-radius: 50px; }...
asked by 19.09.2018 / 16:24
3
answers

Load HTML from another HTML [duplicate]

I would like to ask for help loading in my main HTML file external files from 2 other HTML pages Below is the nav <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <ti...
asked by 31.01.2018 / 06:30
3
answers

Effect of filling a line

I need to make an effect like this on this site link Wellwhereisitmarked?IwouldliketoknowhowthiseffectworksandifthereisanypluginforitFollowmytestcode: .chart { margin: 0 auto; position: relative; width: 70px;...
asked by 20.05.2015 / 19:07
3
answers

How to do with CSS a checkerboard type chess board for the Body?

I would like to put in the% w / o% a checkered background, type a chessboard covering the whole body. I've tried <body> , but I could not ... html, body { width: 100%; height: 100%; margin: 0; padding: 0;...
asked by 03.08.2018 / 20:43
3
answers

Property usage nth: child () [duplicate]

I would like to know if there is a possibility to leave the BLUE , ROSA and YELLOW colors consecutively, I tried using nth: child but I did not quite understand how to do it because it left in the sequence that I would only like the fir...
asked by 25.10.2018 / 00:04
2
answers

Leave all LI with height of greater using CSS

I have some elements <li> that I estimate to stay inline-block . However, since the content of each <li> is different, they end up with different HEIGHT. Like that: However,thecorrectthingisthatthe%with%withlessc...
asked by 07.03.2017 / 23:23