Jump to content
knystrom18

Specific CSS Selector(s)

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!

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Why don't you wanna wrap? It's not that hard... It takes 30sec. If that.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Bump! I'm not sure now... I forget what I was working on at the time. I think I ended up just wrapping it anyways. Thanks for the replies though.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...