emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 2 columns web site
@ 2013-03-26  9:22 Alan Schmitt
  0 siblings, 0 replies; only message in thread
From: Alan Schmitt @ 2013-03-26  9:22 UTC (permalink / raw)
  To: Orgmode Mailing List


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:

#+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
  :CUSTOM_ID: mainbody

This is the body

It could be very long

But it's not

The sidebar:

* sidebar
  :CUSTOM_ID: sidebar

- with
- some
- items

The CSS stylesheet:

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

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 ?



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-26  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26  9:22 2 columns web site Alan Schmitt

Code repositories for project(s) associated with this public inbox


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).