Can CSS select elements with specific content? [closed]?

Up vote 0 down vote favorite share g+ share fb share tw.

I realize I can use something like this: . Thishref=". /foo.

Php" { /* And the styles... */ } But is there a way to select based on inner content? So if I have this: Continued How can I select it based on it's content, Continued , if I can? Css css-selectors pseudo-class link|improve this question edited Feb 7 at 4:51BoltClock's a Unicorn?101k14145377 asked Feb 7 at 4:18sackbot141.

Stackoverflow.com/questions/3744289/… – ToddBFisher Feb 7 at 4:22 From the title, "CSS"... it is not jQuery if I remember correctly – sackbot14 Feb 7 at 4:41 1 lol, that's why I put it as a comment. I'm not familiar with any css solution but jQuery can do it. – ToddBFisher Feb 7 at 4:48 Yeah, it doesn't seem possible with CSS, I did it with jQuery but wanted a non-js solution... which I found out anyways, so.. yeah.

– sackbot14 Feb 7 at 4:56.

No, not with CSS, and there really should never be a need too. If you're making a "Continued" button, link, or whatever: specify a class, maybe an ID, or even use an attribute, and select it. There really is no need for a content selector with how many options you already have.

Not to mention, not adding a class or some kind of identification to this link makes it look like regular text within the document, possibly removing some of its semantic meaning. Giving it a separate class makes it stand out. If I give a link the class "button," that makes it stand out from the rest of the links on the page, saying "I'm a button, not just an ordinary link.

" Selecting based on the content does nothing of the sort; it's just another link.

Well I am using a phpBB forum and installed an addition and cannot seem to find out how to add a class to something (did not create the addon), and so I can't find a way to get rid of it. I will look though. :P Thanks – sackbot14 Feb 7 at 4:51 There was going to be a :contains() pseudo-class but it was cut for reasons unknown.

See this answer. It's probably something to do with performance (every single ancestor would match a bare :contains() selector for a given string), along with, like you say, the options already available. – BoltClock's a Unicorn?

Feb 7 at 4:55 Wait nevermind I found it :D So yeah.. this is pointless, if only I knew how to delete it.. – sackbot14 Feb 7 at 4:55 @sackbot14: There's no reason to delete anything. It's a valid question that others may also be interested in. – animuson Feb 7 at 4:57 @sackbot14: I'll close this for you, but I won't delete it as I think it's worth keeping.

(Not every duplicate needs to be deleted. ) – BoltClock's a Unicorn? Feb 7 at 4:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions