This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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: jirka@kosek.cz     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/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]