emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: 2 columns web site
Date: Tue, 26 Mar 2013 10:22:12 +0100	[thread overview]
Message-ID: <m2sj3ildmj.fsf@polytechnique.org> (raw)

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: <link rel="stylesheet" type="text/css" href="style.css" />

#+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

                 reply	other threads:[~2013-03-26  9:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2sj3ildmj.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).