On Tue, Apr 2, 2013 at 5:48 AM, Dave Angel <da...@davea.name> wrote:
>
> BTW, can you tell me how you get the #the-namespace-object part of your
> link?  Is there some technique (without actually looking in the source code
> for the page) for finding the nearest id= ?

    <h3>
    16.4.4.6. The Namespace object
      <a class="headerlink" href="#the-namespace-object"
         title="Permalink to this headline">
      ¶
      </a>
    </h3>

The paragraph symbol (¶) appears when you hover over the heading.
Click it to get the anchor. Here's the bit of CSS that makes the
headerlink visible when you hover:

    a.headerlink {
        visibility: hidden;
    }
    h1:hover > a.headerlink,
    h2:hover > a.headerlink,
    h3:hover > a.headerlink,
    h4:hover > a.headerlink,
    h5:hover > a.headerlink,
    h6:hover > a.headerlink,
    dt:hover > a.headerlink {
        visibility: visible;
    }

http://docs.python.org/3/_static/basic.css
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to