From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: export and containers Date: Mon, 02 Mar 2009 17:50:15 +0100 Message-ID: <87fxhvvph4.fsf@kassiopeya.MSHEIMNETZ> References: <49a91200.1438560a.6867.ffffb3e4@mx.google.com> <87eixikd1u.fsf@kassiopeya.MSHEIMNETZ> <49ab92ef.0407560a.4681.543e@mx.google.com> <87vdqsz31c.fsf@kassiopeya.MSHEIMNETZ> <49abef4e.0437560a.1ed0.52f0@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 1LeBIU-0002HX-6d for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 11:47:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeBIP-0002H2-Qc for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 11:47:17 -0500 Received: from [199.232.76.173] (port=59463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeBIP-0002Gm-Ii for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 11:47:13 -0500 Received: from mail.gmx.net ([213.165.64.20]:48199) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LeBIO-0005Hg-F4 for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 11:47:13 -0500 In-Reply-To: <49abef4e.0437560a.1ed0.52f0@mx.google.com> (Richard Riley's message of "Mon, 02 Mar 2009 15:38:05 +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: >>> 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. > > "content" or "org-container". Wrap made no sense to me. It suggests word > wrap in the context. wrapper would be better. Purely vocabulary issue. > >> >>>>> :preamble "
>> >> I'd say they should have an ID assigned. > > Just an academic question : Why not a class? Because it's supposed to be the exact entity, that contains exact all the other stuff and shares no styles but those all
elements and share. A user could add another container "
" and break the page layout. But as no browser seems to force the uniquety of IDs, it doesn't yet make a difference really. >>> 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 > > FYI I have abandoned xhtml in the smalle bit of web UI I touch.. It is > not cross platform/browser. Common concensus says make it html 4.01 > strict compliant. I can't tell that, and I touch quite some UIs. XHTML is more rigid though. Case sensitive and so on. It's what WEB-programming always was: fiddling with different browsers, each of which having it's own `standard' and finding the Lowest Common Denominator... It doesn't really have to do anything with programming, where things usually are well defined even accross different plattforms. But I can say, that XHTML is just as crossbrowser as HTML. Validating helps a lot though. >> 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'. > > I dont know/understand what you mean with "columns". > > Columns suggest layout in columns. It should simply be a "wrapper". That > wrapper may or may not be CSSd to a column. It might be a float or a > fixed position or ..... Yes, sorry - those where stupid names... >> All the `sec-' objects share classes via the containers they live in: >> >>
>>
>> >> etc. > > Yes. Thats what I was suggesting but see later on regarding css descendants. > >> >> That's already the case, and I think we don't need to change that. >> > > There is still this difference between ID and class name. I'm not sure I > see why. Hmm - let's see... Each of the elements has a class assigned, that is common to those on the same level. Some of them have an additional ID that makes it possible to address exactly that very element:

4.1 Pi

The headline `PI' is no different from other headlines in the document from JavaScript's or XML-Tools point of view. What makes the element special, is just it's ID. There could be a headline `PI' on the same level in any other Section of the document. That's why we need the ID. Sure you may use CSS-selectors like this, to style all the level 3

elements: .outline-text-3 p { color:green; } >> >> * Suggestions for names >> >> `wrap' is, what they use in typolight and some other CMSs. But >> `content' sounds good to me too. >> >>

>>
>> >>
>>
>> ... >>
>>
>> >>
> > where is the "base" class for box-2? > > The issue I see is that theres no way using this method to change all > "sec-" entries in an outline container for example since you cant use > css descendants since all have *unique* class names and IDs. Hihi, I just see what you mean (below). I seem to have no luck in answering your mails ;-) In this example below it seems that `outline-2' has the `2' in it's class name, because it's the class of the container that holds section 2. But that's not true. Sorry for being so stupid. Each container on depth 2 has this class name assigned. So you may change the number in all IDs and the section number to 14. >>
>>

2 Konfiguration

>>
> > and another div here is what? > > > ,---- > | >
> `---- > > ? My next being unclear :-/ I'd better copy and paste from real exported stuff:

6 Computer

content of section 6

6.1 Linux

content of section 6.1

6.2 Linux

content of section 6.2
> I'm not sure I understand the need for the container container. Maybe I > need to Google up centering vertically. Hrm, just ignore me. We can center the page vertically without an additional container. Regard, Sebastian -- 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