OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: 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;
	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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]