javascript - Wanting to add a defining element to a class without changing the class name -


so question may sound strange needing add defining element line of code in css can target element when targeting class well. current code below. needing add class without changing class name "right-button". if wanted code in css code "this.right-button {}", question sis in line of code can insert "this"? hope makes sense....

 <div id="scroll">      <a href="mensshoes.php" class="right-button"><img   src="images/scrollright.png"/></a>  </div> 

you add id , attach css onto that. <a class="right_button" id="id_name"> #id_name {css_stuff: here;}

the other way may use inline tag <a class="right_button" style="{css_stuff:here}">.

edit: adding class others mentioned method too, if you're adding css 1 element, think id method way go.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -