Jump to content

Specific CSS Selector(s)


knystrom18

Recommended Posts

I'd like to select text between tags without wraping that text in tags as well.Example:

<div>  I'd like to select this sentence without wrapping something like a 'p' tag around it.</div>

I've looked at:

div > *

and a few others, but can't seem find something that will work. Is this even possible? Thanks!

Link to comment
Share on other sites

With javascript you can, but not CSS. You'd have to wrap the specific sentence in a span, p, or other sort of tag.

Link to comment
Share on other sites

what will you do with that text? color,font,text can control the appearance of texts of target node.

Edited by birbal
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...