From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: ATTR_HTML for a clickable image, howto? Date: Fri, 06 Apr 2012 11:02:12 +0200 Message-ID: <87aa2pi67f.fsf@altern.org> References: <86pqbrywgr.fsf@iro.umontreal.ca> <87r4w63602.fsf@gnu.org> <86vclekyqo.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG52d-0006k5-IO for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:01:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SG52V-0002iu-20 for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:01:11 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:45340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG52U-0002ie-OR for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 05:01:02 -0400 Received: by wibhj13 with SMTP id hj13so287364wib.12 for ; Fri, 06 Apr 2012 02:00:58 -0700 (PDT) In-Reply-To: <86vclekyqo.fsf@iro.umontreal.ca> (=?iso-8859-1?Q?=22Fran=E7o?= =?iso-8859-1?Q?is?= Pinard"'s message of "Thu, 05 Apr 2012 11:02:55 -0400") 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: =?iso-8859-1?Q?Fran=E7ois?= Pinard Cc: emacs-orgmode@gnu.org Hi François, pinard@iro.umontreal.ca (François Pinard) writes: > I understand what you mean by saying it does not make sense with the > current mechanics. Yet, from a user perspective, it surely makes sense > hoping that Org offers a way for adding attributes to either part of a > link, as links are kind of indivisible (so far that I know). Agreed. But remember we are in kind of a transition from the current exporter to the new ones, so efforts on fixing problems with the current one are less pressing than trying to move to the new ones. >> I suggest you fix your css instead. > > My knowledge of CSS is rudimentary. I'm not aware that CSS (the version > widely available, not the incoming one) has enough matching capabilities > to spot wrong HTML, remove attributes on some elements and add them on > other elements. Is that really possible? #+ATTR_HTML: align="right" id="my_css_id_for_this_anchor" [[file:2011-06-04-gazou-passeport.png][file:2011-06-04-gazou-passeport-petit.jpg]] Then in your css: a.my_css_id_for_this_anchor > img {...} > Should I dive and study CSS more? Everyone should, no ? :) > Without matching, CSS would not help much, as the correction is > needed in three dozen cases at most, and not blindly for all images. See above. HTH, -- Bastien