From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Add a class for first paragraph in ox-html? Date: Tue, 10 Jun 2014 10:01:58 -0400 Message-ID: References: <87sinhbr74.fsf@kuanyui-laptop.site> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuMd0-0003kx-IU for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 10:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuMcs-0007r4-Ry for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 10:02:18 -0400 Received: from mail.rickster.com ([204.62.15.78]:44527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuMcs-0007qn-OU for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 10:02:10 -0400 In-Reply-To: <87sinhbr74.fsf@kuanyui-laptop.site> 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: kuanyui Cc: emacs-orgmode@gnu.org On 2014-06-06 18:37, kuanyui wrote: > If you export an Org file to HTML, which has a paragraph before the > first outline, the paragraph will be only wrapped with

and no > class/id: > This is an obstacle for write CSS for org HTML page. Maybe this can be > fix by add a seperate class or id for this paragraph? Thanks. Adding a class or wrapping the paragraphs (there can be more than one) before the first headline is non-trivial. However, I believe these are the only paragraphs as direct children of the content div, you can use the css selector "#content > p" to reference them. rick