Menu

Adding a small image to the title cell

Styles
2005-10-04
2012-09-14
  • Nobody/Anonymous

    I'd like to slightly modify the output format of NaturalDocs so that each HTML file generated has a copy of my client's logo to the left of the title. Has anybody done this/is it easy to do? It will never change so I suspect that such a reference belongs in the .css file(s) but can't quite work out where.

    Thanks

     
    • Chris Charlton

      Chris Charlton - 2006-07-26

      In my custom stylesheet, I added a margin-top and background image (no repeat) to the body tag. Cheap fix; works.

       
    • Greg Valure

      Greg Valure - 2005-10-09

      It may be possible to do it in CSS with :before and content, but I haven't tried it and if I remember correctly, IE doesn't support that.

      It would be easier to just edit Natural Docs itself to change the generated HTML. Open [ND Dir]/Modules/NaturalDocs/Builder/HTMLBase.pm and search for <div id=MTitle>. That's right before the text of the menu title so anything you add to that string will be added to the output. You'll have to run ND with -ro once to apply the changes.

       

Log in to post a comment.