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