From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uriel Avalos Subject: Apply custom CSS class to headings in HTML export? Date: Thu, 31 Mar 2011 18:46:45 -0400 Message-ID: <8827.06049965254$1301611657@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47833 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5Qdk-0005w2-Dr for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 18:46:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5Qdi-0005Js-Rk for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 18:46:56 -0400 Received: from smtp102.prem.mail.ac4.yahoo.com ([76.13.13.41]:26452) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q5Qdi-0005Jg-M3 for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 18:46:54 -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: emacs-orgmode@gnu.org Suppose that you export the following document to HTML: * Heading 1 ** Heading 2 The HTML structure is pretty much the following: div class=outline-2 h2 Heading 1 div class=outline-text-2 div class=outline-3 h3 Heading 2 Is there a way to apply a custom CSS class to the: 1. containing div (outline-2)? 2. heading itself (h2)? 3. text inside of the heading (outline-3)? Why? Suppose you have the following document * Heading 1 ** Resources ** Answers * Heading 2 ** Quiz ** Resources ** Answers You need to apply a different style to the Resources and Quizzes. Unfortunately, these don't always appear in an outline and they don't always appear in the same order. It is infinitely easier to use a custom CSS class with each heading. --Thanks