From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: export and containers Date: Mon, 02 Mar 2009 10:29:03 +0100 Message-ID: <87vdqsz31c.fsf@kassiopeya.MSHEIMNETZ> References: <49a91200.1438560a.6867.ffffb3e4@mx.google.com> <87eixikd1u.fsf@kassiopeya.MSHEIMNETZ> <49ab92ef.0407560a.4681.543e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Le4PR-0002zS-Kd for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 04:26:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Le4PQ-0002zG-VS for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 04:26:01 -0500 Received: from [199.232.76.173] (port=49803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4PQ-0002zD-QM for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 04:26:00 -0500 Received: from mail.gmx.net ([213.165.64.20]:38055) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Le4PQ-0006Fv-4l for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 04:26:00 -0500 In-Reply-To: <49ab92ef.0407560a.4681.543e@mx.google.com> (Richard Riley's message of "Mon, 02 Mar 2009 09:03:58 +0100") 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: Richard Riley Cc: org-mode Richard Riley writes: > Sebastian Rose writes: > >> Richard Riley writes: >>> It's been a while since I've looked at my org set up. One thing that >>> always struck me as a bit hacky was my use of >>> >>> :preamble "
>>> >>> and the corresponding postamble to enclose the exported web pages into a >>> "container" div. Is there a better way to do this? I would think it >>> would be a common enough need that by default or via an option all html >>> should be enclosed in a "webcontainer" ID. >> >> While one container around everything makes it possible to center the >> page horizontally, two containers make it possible to center the page >> vertically as well. >> >> If we would go and change the structure once again, I'd even suggest the >> following: >> >> >>
-- center the page if desired >>
-- center the page if desired > > Why always IDs as opposed to classes? `percent-50' and `wrap' are there for a special purpose and unique in that concern. `wrap' is the `content' you originally requested. I did not use my brain and called it `wrap' without any annotation. >>> :preamble "
I'd say they should have an ID assigned. > Can css selectors select based on a part of a name? If not then there is > no link between column-1 and column-2. e.g in this convention how does > one create a common style for all columns or all "sec-" objects? Aaah, OK, sorry for being unclear - a misunderstanding. I did *not* mean to _change_ the structure of the XHTML in it's current form, but simply _add_ additional containers to partition the whole thing (just as you suggested) and thus make it possible to move certain groups of content around through CSS. All the "sec-" objects should go into `column-2'. All the `sec-' objects share classes via the containers they live in:
etc. That's already the case, and I think we don't need to change that. * Suggestions for names `wrap' is, what they use in typolight and some other CMSs. But `content' sounds good to me too.
...

2 Konfiguration

...
... more sections, footnotes ...
postamble
>> >>
-- Help with fixed TOC >>
>> the toc >>
>>
>> >>
-- Help with fixed TOC >> All the rest of the content goes here >>
>> >>
>> postamble >>
>> >>
>>
>> >> >> >> >> Having two boxes for the TOC would make the fixed TOC work in IE. In >> general, I prefere to use two kinds of Boxes: >> >> - one for positioning, floating and so on. This one should have _no_ >> padding or margin at all! > > Can one not simply use .body for that? > >> - one for margin, padding, styling. >> >> I found, this is the only way to reliably enforce a layout across >> browsers. >> >> >> column-1 and column-2 are for that very reason. All we can do to put the >> TOC to the left or right is, to add margins to the body or the level 1 >> contents, and place it there. This is, what causes the problems with the >> fixed TOC in IE. `column-1' and `column-2' (and `postamble') make it >> possible, to adjust the layout in various common ways. >> >> The `percent-50' (oh what a name) and `wrap' are just there, to be able >> to center the whole page horizontally _and_ veritcally. > >> >> >> Best, >> >> -- >> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover >> Tel.: +49 (0)511 - 36 58 472 >> Fax: +49 (0)1805 - 233633 - 11044 >> mobil: +49 (0)173 - 83 93 417 >> Http: www.emma-stil.de >> -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose@emma-stil.de, sebastian_rose@gmx.de Http: www.emma-stil.de