Next in thread →
Next in month →
Re: [docbook-apps] static table of contents
Larry Garfield wrote:
> Using CSS:
> div.toc {
> float: left;
> width: 20%;
> position: fixed;
> }
>
> div.book div.chapter {
> margin-left: 20%;
> }
>
> I believe that should work for any browser EXCEPT MS IE, because IE
> doesn't support position: fixed (even though it's been part of CSS for 7
The following CSS is known to work at least in IE, Mozilla and Opera:
div.toc { position: fixed;
left: 10px;
width: 182px;
border: 2px blue solid;
padding: 2px;
overflow: auto;
height: 90%;
/* IE hack */
position: expression("absolute");
top:
expression(document.body.scrollTop+this.offsetHeight-this.offsetHeight);
}
div.book { margin-left: 200px }
--
------------------------------------------------------------------
Jirka Kosek e-mail: http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
Next in thread →
Next in month →