I'm sure this is a very simple thing but I've been banging my head against it all day, so I decided to just ask.
I have some divs that I would like to align to the right within their parent div. "text-align: right" works if I don't specify a width:
<div style="text-align: right;">
    <div>
        This text aligns to the right
    </div>
</div>
But if I put a size in pixels on the inner element, it does not:
<div style="text-align: right;">
    <div style="width: 200px;">
        This div stays on the left
    </div>
</div>
What am I missing?
 
     
    