Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

pseudo-element

CSS style for ::after with plus(+) selector

November 28, 2022 by Magenaut

I want to add some CSS style for ::after when the input is checked.
For example, I want to change the color of ‘A’ from red to blue.

Categories MySQL, Q&A Tags css, css-selectors, html, pseudo-element Leave a comment

CSS text wrapping around left aligned image

November 12, 2022 by Magenaut

I have a problem getting the following h2 title to wrap around the left align image if the title is long. It works perfectly with short titles.

Categories HTML, Q&A Tags css, header, html, pseudo-element Leave a comment

How Do You Fix the Darkened Text Selection Color in Safari? – CSS

November 12, 2022 by Magenaut

I have been using the following CSS code on my website to change the color of selected text, and it seems to work on every browser except Safari. Please let me know what should be added as the Safari Browser seems to darken whatever color I choose, unlike other browsers:

Categories HTML, Q&A Tags css, html, pseudo-element, safari, selection Leave a comment

Can I use a :before or :after pseudo-element on an input field?

November 11, 2022 by Magenaut

I am trying to use the :after CSS pseudo-element on an input field, but it does not work. If I use it with a span, it works OK.

Categories HTML, Q&A Tags css, css-content, html, pseudo-element Leave a comment

Font Awesome 5 on pseudo elements shows square instead of icon

November 11, 2022 by Magenaut

I am trying to change the content of a span with a Font Awesome icon directly from the CSS page but can’t seem to make it work properly.

Categories HTML, Q&A Tags css, font-awesome, font-awesome-5, html, pseudo-element Leave a comment

CSS content property: is it possible to insert HTML instead of Text?

November 10, 2022 by Magenaut

Just wondering if it’s possible somehow to make the CSS content property insert html code instead string on :before or :after an element like:

Categories HTML, Q&A Tags css, css-content, html, pseudo-element Leave a comment

:after and :before CSS pseudo elements hack for Internet Explorer 7

November 10, 2022 by Magenaut

I am using :after and :before CSS pseudo elements and it is working fine in Internet Explorer 8, and all modern browsers but it is not working fine in Internet Explorer 7. Are there known hacks to work around this in Internet Explorer 7?

Categories HTML, Q&A Tags css, html, internet-explorer-7, pseudo-element Leave a comment

CSS :before on inline SVG

November 9, 2022 by Magenaut

Update
Thanks porneL for pointing out the relation between generated content and replaced elements.
I found this article which deals with this very topic:

Categories HTML, Q&A Tags css, html, pseudo-element, svg Leave a comment

Elongated hexagon shaped button using only one element

November 9, 2022 by Magenaut

I would like to make a button like these one just with CSS without using another element.

Categories HTML, Q&A Tags css, css-shapes, html, pseudo-element Leave a comment

How to update placeholder color using Javascript?

November 9, 2022 by Magenaut

I’m searching online and I didn’t find anything.
I’m trying to update the placeholder color of a textbox using javascript, but how can I do that?
I have a color picker and the color is changing.

Categories HTML, Q&A Tags css, html, javascript, pseudo-element Leave a comment
Older posts
Page1 Page2 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress