View Single Post
Old 12-13-2018, 11:16 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ariefcfa View Post
Hi,

I need help about creating Table of Contents like below:

I try to look at the Calibre's Edit Book, part of the code are:
Spoiler:
Code:
  <head>
    <title>Readability - 09/23/14</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
  <body class="calibre">
<h1 id="filepos212" class="calibre1">Readability - 09/23/14</h1>
<ul class="calibre2">
<li class="calibre3">
<a href="index_split_001.html#filepos1865">The Failure of the UN: Rebuilding from the Ruins</a>
</li>
and the sytlesheet.css for "calibre2" and "calibre3" are:
Code:
.calibre_2 {
    color: black;
    font-size: 0.75em
    }
.calibre1 {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
    margin: 0.67em 0
    }
Considering the code snippet you posted uses ul (Unordered List) and li (List Item) tags, it's going to display as a list. You might want to locate a book where the table of contents is wrapped as in your sample and see how that code is written. Better yet, locate 3 or 4 books. Then it's research not plagiarism.
DNSB is offline   Reply With Quote