Git Product home page Git Product logo

csshtmlmenus's Introduction

CSShtmlMenus

Contents of interest: MenuTree.html and help.htm

See CSS3 Family Tree for vertical tree using CSS and html (mostly unordered list) without Javascript

See more complex CSS Horizontal Family Tree for horizontal tree (more appropriate for menus) but with some JavaScript.

Not understanding CSS and disliking JavaScript, started with css3-familty-tree source..

Menu text without href is not boxed.
Paired boxes in one list item should be immediately adjacent, no white space.
If first text of href pair is shorter, path from parent does not split them.
Changing <a href="#">..</a> to <p>..</p> did not break anything..

Siblings appear the same, whether one list item is embedded in another or concatenated after in the same unordered list.

Hover partly fails if not all entries inside one ul.

Copied and git-ignored css3tree.html, HorizontalTree.htm; created HtreeUL.html;
removed tabs in css3tree.html for easier comparison to HorizontalTree.htm.

  • CSS tree diagram learning experiments
  • HorizontalTree.htm generates nearly desired results,
    but CSS requires complex html.
  • css3tree.html CSS generates vertical tree using simpler html
  • HtreeUL.html attempted to apply css3tree.html CSS to HorizontalTree.htm
  • MenuTree.html borrows HtreeUL.html CSS and learning
    to convert css3tree.html from vertical to horizontal.
  • commented out style entries to detect effects
  • added comments to describe those effects

Associating vertical branches with <ul> fails:

  • vertical branch line extends the full height of all embedded content,
    while brand only among first generation <li> children is wanted.

Hardest for me was sorting out parent pairings.
Simplified CSS by settling for square joins between all branches and leaf stems.
Added optional <dl>, <dd> instead of <ul>, <li> for horizontal last generation to save vertical space

Tool tips:

  • Use HTML title Attribute in menu element <p> tags, e.g. <p title="your tool tip here">Menu element</p>

csshtmlmenus's People

Contributors

blekenbleu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.