CSS Wildcards for id selectors - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:id

Description

CSS Wildcards for id selectors

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
[id$=-userlist-user-username] {<!--   w ww . j  av a2 s .c o m-->
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <span id="room-userlist-user-username">Lor</span> 
  <span id="foo-userlist-user-username">Lor</span>  
 </body>
</html>

Related Tutorials