From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: ATTR_HTML for a clickable image, howto? Date: Fri, 06 Apr 2012 11:29:58 +0200 Message-ID: <4F7EB796.2010703@christianmoe.com> References: <86pqbrywgr.fsf@iro.umontreal.ca> <87r4w63602.fsf@gnu.org> <86vclekyqo.fsf@iro.umontreal.ca> <4F7EAED9.2040804@christianmoe.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG5Tn-0006d7-RO for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SG5Te-0003Ya-1a for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:29:15 -0400 Received: from b1.hitrost.net ([91.185.211.67]:48764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG5Td-0003Xz-Rp for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:29:05 -0400 In-Reply-To: <4F7EAED9.2040804@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: =?UTF-8?B?RnJhbsOnb2lzIFBpbmFyZA==?= , emacs-orgmode@gnu.org 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