From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: 2 columns web site Date: Tue, 26 Mar 2013 10:22:12 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQ5K-00041Q-HU for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:22:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKQ5I-00073u-8D for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:22:26 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQ5I-00073h-2P for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:22:24 -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: Orgmode Mailing List Hello, I'm trying to export a simple two columns web site, with a sidebar shared by every page, and here is what I got. The main file: #+BEGIN_SRC org #+TITLE: Testing two column layout #+OPTIONS: toc:nil num:nil #+HTML_HEAD: #+INCLUDE: "sidebar.org" * body :PROPERTIES: :CUSTOM_ID: mainbody :END: This is the body It could be very long But it's not #+END_SRC The sidebar: #+BEGIN_SRC org * sidebar :PROPERTIES: :CUSTOM_ID: sidebar :END: - with - some - items #+END_SRC The CSS stylesheet: #+BEGIN_SRC css #outline-container-mainbody { margin-left: 200px; background-color: #FFCCCC; } #outline-container-sidebar { float: left; width: 200px; background-color: #FFFFCC; } #postamble { clear: both; } h2 { display: none; } #+END_SRC I'm not very happy with the way I avoid displaying the headlines for "body" and "sidebar" using CSS, and I was wondering if there was a better way to do it. Maybe a better question could be: if I want to introduce a "div" element, is the canonical way to use a '*' with some property ? Thanks, Alan