sairfan1 Posted February 7, 2012 Share Posted February 7, 2012 hi, please look at the code .A{ color: red;}.B:focus{ border: 1px; .A} <div class="A">A</div><div class="B">B</div> how can i call class A in B, thanks, Link to comment Share on other sites More sharing options...
Ole Posted February 7, 2012 Share Posted February 7, 2012 [img=http://playstationeu.i.lithium.com/t5/image/serverpage/image-id/189675i7B0071BC4376A43D/image-size/original?v=mpbl-1&px=-1] ah Link to comment Share on other sites More sharing options...
dsonesuk Posted February 7, 2012 Share Posted February 7, 2012 Err? you can't, :focus is for input elements, if you mean :hover you can apply the 'A' class styling using .A{ color:#000000; } .A:hover{ color: red;}.B:hover{ border: 1px solid;} <div class="A">A</div><div class="B A">B</div> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.