This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] TOC sidebar, not "floating"
- From: Tristan Fiedler <fiedler at cshl dot edu>
- To: Docbook-Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 29 Mar 2005 14:12:37 -0500
- Subject: [docbook-apps] TOC sidebar, not "floating"
(I apologize for the CSS question, but we are dealing with a complex
nesting of "div" elements in the HTML output for DocBook)
Thank you for the spot-on suggestions for the Table of Contents in a
sidebar which remains (CSS) fixed. I have :
div.toc {
font-size: 0.7em;
color: black;
position: fixed;
top: 200px;
left: 2px;
width: 242px;
border: 2px grey solid;
padding: 4px;
height:50%;
float: left;
overflow: scroll;
}
div.article { margin-left: 265px;}
Using pixels the small text will stay constant regardless of the size
of the browser window.
-- Since many of the docbook users are very familiar with weblayout,
perhaps someone could answer this :
I would like the rest of the DocBook "article" (my root element) to
"float" around this TOC sidebar. Since the TOC sidebar only takes 50%
of the vertical height of the screen, and I have set float: left, I
thought the other sections of the article would "fill in" below the TOC
as the reader scrolls.
However, even if I remove the :
div.article { margin-left: 265px;}
The main text never comes underneath (ie does not appear to wrap
around) the TOC.
Cheers, Tristan
---
Tristan J. Fiedler
Postdoctoral Fellow - Stein Lab
Cold Spring Harbor Laboratory