I have this CSS
.menuPopup div { width: 100%; padding: 5px; } .menuClose { width:10px; height:10px; padding:0px; position:absolute; top:0px; right:0px; cursor:pointer; }
What should apply to this HTML:
<div class="menuPopup"> <div >A</div> <div >B</div> <div >C</div> <div class="menuClose">X</div> </div>
When applied, the .menuPopup div declaration always overrides the .menuClose .
How can I change the order? i.e. do the width "X" 10px instead of 100% ?
source share