Topic: how to use the symbol ">" in css
hi all,
i want to move the "h2" and "#arrow" together, in my mind they are one. i can't write a arrow(--->)
i only know that the symbol ">" mean a relationship between parent-son but i can't use it .
<div class="toggle">
<h2>move »</h2><div id="arrow"></div>
<br /></div>css code:(i wat them to move together!)
.toggle:hover{
cursor:pointer;
> h2{ width:500px;
letter-spacing:8px;
}
#arrow{
margin-top:-43px;
margin-left:40%;
border-width:25px;
border-color:rgba(218, 236, 244, 0.9) rgba(218, 236, 244, 0.9) rgba(218, 236, 244, 0.9) gray;
border-style:solid;
width:0;
height:0;
line-height:0;
}
}the code above doesn't work ! how to improve it?
many thanks!