From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Applying inline styles to a section for exported HTML Date: Sat, 16 Oct 2010 18:45:21 +0200 Message-ID: <87lj5ym6hq.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45949 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P79su-0002vX-Tp for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:45:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P79st-0005jB-9U for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:45:28 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:47959 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P79ss-0005ia-UI for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:45:27 -0400 In-Reply-To: (Jeff Horn's message of "Fri, 15 Oct 2010 21:40:59 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: Org-mode ml Jeff Horn writes: > I'm aware we can define #+ATTR_HTML: for styling of divs containing > images and tables. Is there similar functionality for section divs? > Simply adding the required option below or above the section didn't do > the trick. > > Since section divs aren't named semantically[1], I can't simply add a > class style to my CSS file. I basically want to turn a section in my > org file into a callout/sidebar box. Any ideas? > > Best, > Jeff > > [1] What I mean is, a section "* Word" is identified with an id and a > class of "section-1" or something similar if it is the first section > in a document. If it had an id of "word", I could simply a style for > that id in my style sheet. Maybe custom IDs are your friends? * A Word on Words :PROPERTIES: :CUSTOM_ID: word :END: Content You can add that property like this: C-c C-x p CU TAB HTH Sebastian