How would one write a pseudo:after css element as a HTML tag place it specifically in the mark-up then create a css rule all at the start of the loading of the DOM ?
Siberian
13
Junior Poster
Recommended Answers
Jump to PostI don't think you can insert html elements into before/after.
js (jQuery) - use.append()
/.prepend()
to add inside element. use.after()
/.before()
to add outside element.
Jump to PostAm not entirely sure what you want. If you want to remove the ::after from the css, you could insert a span at the position you want and style that.
Jump to PostI don.t think you can. Look up the :before defi ition. I.m sure it says no html.
All 11 Replies
Siberian
13
Junior Poster
diafol
Siberian
13
Junior Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Siberian
13
Junior Poster
diafol
Siberian
13
Junior Poster
diafol
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Siberian
13
Junior Poster
gentlemedia
803
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.