How to use generated content at run time dynamically with the ::before and ::after pseudo-elements in CSS?

It is used to generated content at run time dynamically with the ::before and ::after pseudo-elements, to insert generated content.

Ex:-

p::before { content: “Hello DevOpsSchool}

  • normal
  • none
  • counter
  • attr(attribute)
  • string
  • open-quote
  • close-quote
  • no-open-quote
  • no-close-quote
  • url(url)
Tagged : / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x