On 4/6/12 10:52 AM, Christian Moe wrote:
All the CSS needed to right-align all images that are children of a
link anchor is:

    a img {float: right;}

Correction: that's "descendants" of a link anchor, not just "children". If you need to limit this to images that are direct children of link anchors, use the selector

      a > img {...}

(Don't think that comes up much in practice, but if you have text links with inline images, e.g. fancy bullets or dvipng'd latex formulas, the code I posted first would not be what you wanted.)

Christian

Reply via email to