![]() |
I got a css selector problem, hope someone can help this out.
Please see this jsfiddle link:[[LINK href="http://jsfiddle.net/bardirian/z4xcd95v/"]]http://jsfiddle.net/bardirian/z4xcd95v/[[/LINK]]
What I need is to have a text content after the "Item1", well it looks simple but I try a lot different syntaxes just never work.
The result should be looks like the attached file, adding text content by using :after.
*Do not change the html structure since this is trouble with a wp theme.
And please updated it from jsfiddle. ![]() Solution - 1Did you try this: [[LINK href="http://jsfiddle.net/z4xcd95v/24/"]]http://jsfiddle.net/z4xcd95v/24/[[/LINK]] Solution - 2hi Bard Tian, your choices can be anything as per your need... though this might be helpful... "i guess jquery would be a better solutions" $('.project-info div.project-info-box:first-child a').append('-'); Solution - 3I hope this is what you are looking for [[LINK href="http://jsfiddle.net/z4xcd95v/2/"]]http://jsfiddle.net/z4xcd95v/2/[[/LINK]] Solution - 4You just need a specific ID for the item 1's div tag. Your code would be something like [[LINK href="http://jsfiddle.net/navjotjsingh/gksqd5vt/1/"]]http://jsfiddle.net/navjotjsingh/gksqd5vt/[[/LINK]] Solution - 5Hi, Please check : http://jsfiddle.net/z4xcd95v/5/ Hope this will be helpful. Thanks Sai |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 6 |