From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: Re: [BUG] define "just", preamble and postamble placement Date: Wed, 13 Oct 2010 12:07:25 +0200 Message-ID: <8762x6cso2.fsf@dasa3.iem.pw.edu.pl> References: <87eic1af5t.fsf@kotik.lan> <16539.1286491451@gamaville.dokosmarshall.org> <87eic18d2u.fsf@kotik.lan> <31670.1286524019@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=35064 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5zwK-0006qV-Pa for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 07:56:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5yFL-0000Um-Pq for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 06:07:45 -0400 Received: from lo.gmane.org ([80.91.229.12]:60082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5yFK-0000Uh-Vu for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 06:07:43 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P5yFF-0006cs-Nq for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:07:37 +0200 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2010 12:07:37 +0200 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2010 12:07:37 +0200 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 Nick Dokos writes: > Łukasz Stelmach wrote: > > >> |-----------+-----| >> | Preamble | >> |-----------+-----| >> | | | >> | Content | TOC | >> | | | >> |-----------+-----| >> | Postamble | >> |-----------+-----| >> >> I'd like to have a layout like the above one, with (pre|post)ambles of >> full width (or at least as wide a the content + TOC). With the present >> layout preamble and postamble are siblings to TOC and the text and I >> can't get the desired layout. >> [...] > If you are willing to write some CSS, I think it's quite possible to get > the layout you want (but you may need to add e.g. ids to various > elements in the HTML - I haven't looked at the HTML that org produces in > any detail to see what it puts in and what it leaves out). In > particular, I don't think that the parent/sibling structure of the DOM > tree limits you in any way as far as the layout goes: the
id="content"> just gives you a different containing block element; if it > wasn't there, the element would be the containing block element - > but does that really make much difference? And if the preamble/postamble > were outside the div, the tree structure would be different but so what? > Minor adjustments in the CSS would take care of it, I should think. > > But as I said, I'm no expert and I may very well be mistaken. But it looks you're right. It seems like it's easier to tweak the CSS than the HTML structure, while still getting the same visual results. At least as far as such simple layouts as Ordinaire[1] are concerned. [1] http://www.freecsstemplates.org/preview/ordinaire/ -- Miłego dnia, Łukasz Stelmach