Questions tagged as 'pseudo-elementos'

1
answer

Pseudo elements :: after and :: before work in which input types

I would like to know if there is any documentation or article that says where exactly we can use ::after and ::before I have already seen that in the <img> tag, for example, it does not work. I believe it does not w...
asked by 14.12.2017 / 18:53
2
answers

What is the purpose of the ":: before" and "after" pseudo-elements?

I find many codes that use these pseudo-elements and I get "flying" when I see them. The few tutorials I found on the internet did not explain clearly and I was even more doubtful. After all, what is their purpose / function?
asked by 12.01.2016 / 14:28
1
answer

How can I use the pseudo css elements

Following a css3 tutorial, I learned how to place icone inside the inputs. The dev that I was teaching used an example of 2 inputs to put 2 icons 1 in each input. In this case, you used the following pseudo elements: .form-group :: before...
asked by 04.05.2018 / 11:55
1
answer

Bug using after pseudo-element on small screens

Hello, a curious bug appeared when I tried to make text with this effect: Theproblemisinsmallerscreens,thesecondeffectintheadipiscingelittextwillsimplydisappear,dependingonthesizeofthetwo,asshownintheimagebelow:   CHANGE:ByanalyzingIrealized...
asked by 09.10.2018 / 20:27
1
answer

The target of CSS selectors with pseudo-element :: before

Hello, I'm studying CSS3, and in a given tutorial, I looked at all of it, and I did not understand the point where ::before was used along with the checkbox, in which the content property was added. Follow the code below...
asked by 30.09.2018 / 05:37
1
answer

Aligns pseudo element to forward in the navigation bar

I'm having a hard time aligning the: before bar on the right. Can anyone help me with this? I'm using this code: .nav-romeu li:before { content: ''; width: 50px; height: 2px; background: #000; position: absolute; top...
asked by 04.08.2017 / 16:27
1
answer

Prevent pseudo element :: before receiving the effects of hover applied to its parent

Hello, I'm applying hover to an element, and it contains a pseudo before element, in which it is receiving the hover effects of its parent element. > This image shows the problem: Seethattheelementwiththenumber3whenactivatinghoveralsoac...
asked by 18.09.2018 / 14:01