Questions tagged as 'css'

1
answer

Break lines in CSS without using extra elements

I have 2 elements inline and I need to cause the line to be broken, without needing to add display: block; or if possible add but not occupy 100% of the line: <div class="box-error-page cb"> <h1 class="title-page-err...
asked by 21.08.2014 / 15:50
1
answer

How to display asterisk in fields with required with css?

I have a form with some mandatory fields and some not. How can I automatically insert an asterisk into the label of each field with required via css? <div class="form-group col-md-4"> <label for="cod_produto">Código do Pr...
asked by 27.07.2016 / 21:36
3
answers

How to change the text of a link after it has been clicked?

How do I get the text of a link where to be written "show more" change to "show less" and vice versa when clicked? >     
asked by 28.12.2016 / 17:39
2
answers

Effect number increasing / decreasing

I searched SOpt and did not find what I wanted Let's say I have a button and when you click it change the value of some div > or input . The starting value is 1 , and click , change to 10 . I would like this transition not...
asked by 20.08.2017 / 21:07
2
answers

Abalone shape with CSS how to do? How to make a shape in this half-rounded format?

I'd like to make an element half round, it's not an ellipse, not a circle, and not an element with border-radius . It is a half-rounded way as you can see in the image below and I could not do it with CSS. Itriedtogetthisshakenform,but...
asked by 19.12.2018 / 12:09
1
answer

How to prevent pseudo-element (before or after) inside a clickable tag?

Is there any way to prevent the pseudo-element ::after or ::before from a <a> link becoming part of the link itself? My idea was to use ::after in a <a> link tag, this ::after would be u...
asked by 04.09.2018 / 20:17
5
answers

How to add a class in a class by clicking on it, leaving only it with that class?

For example: I have more than ul with li ; If I click on a% of% of the first li it has to add a class; If I click on a ul of the second li , it adds that same class. Only which does not interfere with the...
asked by 11.02.2014 / 13:10
3
answers

Position caption above div

I'm using the bootstrap carousel with caption. Between the slide image and the caption there is a div with the image of an orange triangle. I need the caption to stay above the triangle. I have already used z-index but I can not position this ca...
asked by 22.06.2017 / 23:22
2
answers

Why does Google recommend inline CSS?

I was optimizing a client site that insists on wanting to get a high score on PageSpeed Insights, and I'm having trouble "removing JavaScript and CSS blocking rendering in content above the edge." Even after I'm minifying CSS, I'm still charg...
asked by 21.06.2017 / 20:10
3
answers

How to leave vertically self-adjusting DIVs?

I'm having trouble trying to leave some% s of self-tuning% s vertically. Thereisspacerequiredforthedivtobeexactlybelowtheoneaboveit,butitdoesnotrise,thereisanemptyspacebetweenthetwo.(i.e. Example in JSFiddle     
asked by 06.07.2014 / 22:21