Questions tagged as 'css'

3
answers

CSS condition for when there is no SRC in the image

I need that, when an image does not have the src attribute, css recognizes this automatically and hides that element with display:none What selector should I use to do this? Example: <img src="tem_imagem" class="image" />...
asked by 26.11.2015 / 12:01
1
answer

How to make Stripe with CSS only?

How can I make a stripe (that slide diagonally) only with CSS? The image below illustrates my question better.     
asked by 07.02.2017 / 16:43
1
answer

How to create a Radio button with image?

How can I make a Radio Button become an Image? I need to make a gallery of images inside a form so, clicking on the image would be selecting a radio button as in the image below:     
asked by 26.12.2015 / 23:28
2
answers

How to leave responsive source?

How do you make the text size responsive and fit different screen sizes? I tried using em units but it did not work. I've tried using Media querys: EX: @media(max-width:768px){font-size:1.5em} I've tried the target / context...
asked by 24.12.2015 / 15:07
2
answers

Make jQuery-Tools handle a team

I use jQuery-Tools to create a custom effect of scroll on a div as in the following example : "use strict"; var id_label_ms = document.getElementById("count_label_ms"); var range = document.getElementById("area"); var...
asked by 21.08.2015 / 17:24
1
answer

Is there any way to bend a text with CSS or leave the text bent in a line?

Is there any way to put text in this format without having to use an image? Or I would like to make some kind of crooked text, but I could not do it. The idea would be to do something close to that image, but only with code to facilitate quic...
asked by 21.09.2018 / 19:30
1
answer

Is there any way to use a "custom-attribute" as the value of a CSS property?

I wonder if there is a possibility to use custom-attribute of type data-*=" " as a value for a CSS style or even use this custom date as value for a variable in the CSS. For example, I'll explain my idea. I'd like to put in t...
asked by 18.09.2018 / 16:56
2
answers

Good practice with selectors in css

What is the best practice for working with selectors in css? Use .menu li { } ou .item {} .menu .item { } ou .menu-item { } //aqui usamos para atribuir propriedades para as <li> por exemplo What would be the best practice for thi...
asked by 19.03.2014 / 18:23
1
answer

Mounting CSS from Image

I have the image below that shows a form HTML . IwantedtomakethiseffectintheformbutIcouldnot.Cananyonehelpme?Followmyattempt. body { font-family: 'Roboto', sans-serif; background-color: rgb(40, 22, 111); } .logon { position:...
asked by 02.01.2019 / 11:39
1
answer

Radar effect with CSS

I'm trying to make a "radar" animation around an image using only CSS with @keyframes . I even managed to get a result, except that I can not synchronize the two "waves" of the radar, see: body{ margin: 0; } #container{ d...
asked by 02.01.2019 / 21:53