css selector by custom attribute Questions › Category: wordpress › css selector by custom attribute 0 Vote Up Vote Down Brandon9 asked 7 years ago How can i write a css selector by the element’s custom attribute? html: <div data-custom=”some=value”></div> 1 Answers 1 Vote Up Vote Down Best Answer karl answered 7 years ago You can use the custom attribute selector. in your case, you can do this in your stylesheet: div[data-custom=”some=value”]{ } Please login or Register to submit your answer Username or Email Address Password Remember Me