Site Tools


css-ol

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
css-ol [2015/03/17 01:44] Alan Sheacss-ol [2015/03/17 04:54] – [CSS Ordered List Numbering] moz dev link Alan Shea
Line 2: Line 2:
  
   * CSS issue with ordered lists using decimal/legal numbering.    * CSS issue with ordered lists using decimal/legal numbering. 
-  * Worked fine before upgrade+  * Worked fine before upgrade 
     * Unordered (bullet) lists have same problem when long lines wrap. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada enim non dui lobortis, a pretium nisi maximus. Etiam vestibulum porttitor lacus nec malesuada. Quisque nec efficitur quam, eu fringilla ipsum. Suspendisse fermentum dapibus tortor. Phasellus vitae mollis felis.      * Unordered (bullet) lists have same problem when long lines wrap. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada enim non dui lobortis, a pretium nisi maximus. Etiam vestibulum porttitor lacus nec malesuada. Quisque nec efficitur quam, eu fringilla ipsum. Suspendisse fermentum dapibus tortor. Phasellus vitae mollis felis. 
       * even several levels        * even several levels 
Line 20: Line 20:
     - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference     - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
     - http://www.w3.org/TR/CSS2/text.html#alignment-prop     - http://www.w3.org/TR/CSS2/text.html#alignment-prop
 +    - https://developer.mozilla.org/en-US/docs/Web/CSS/display 
   - Testing:   - Testing:
     - www.w3schools.com/css/tryit.asp?filename=trycss_list-style-type_all     - www.w3schools.com/css/tryit.asp?filename=trycss_list-style-type_all
Line 26: Line 27:
     - Cannot reproduce undesired behavior actually experienced.      - Cannot reproduce undesired behavior actually experienced. 
  
 +====Custom Styles===
 <file css userstyle.css> <file css userstyle.css>
  
- +.dokuwiki .li {text-align: left; display: inline; line-height: 1.9em
-.dokuwiki .li {display: inline-flex+.dokuwiki ol {counter-reset: section; list-style-type: none;} 
-.dokuwiki ol {counter-reset: section;  list-style-type: none;} +.dokuwiki ol ol {list-style-type: none;  }        
-.dokuwiki ol ol {text-align: justify; padding-left:5px; list-style-type: none}        +.dokuwiki ol ol ol {list-style-type: none}  
-.dokuwiki ol ol ol {text-align: justify; padding-left:5px; list-style-type: none}  +.dokuwiki ol ol ol ol {list-style-type: none}  
-.dokuwiki ol ol ol ol {text-align: justify; padding-left:5px; list-style-type: none}  +.dokuwiki ol ol ol ol ol {list-style-type: none} 
-.dokuwiki ol ol ol ol ol {text-align: justify; padding-left:5px; list-style-type: none} +
 .dokuwiki ol li {counter-increment: section; } .dokuwiki ol li {counter-increment: section; }
 .dokuwiki ol li:before  { content: counters(section, ".") ". ";  } .dokuwiki ol li:before  { content: counters(section, ".") ". ";  }
- 
  
 </file> </file>
Line 43: Line 43:
  
 <file css userprint.css> <file css userprint.css>
-.dokuwiki .li {display: inline-block; } 
-div.dokuwiki ol {counter-reset: section;  list-style-type: none;} 
-div.dokuwiki ol ol {padding-left:5px; list-style-type: none}        
-div.dokuwiki ol ol ol{padding-left:5px; list-style-type: none}        
-div.dokuwiki ol li {counter-increment: section; } 
-div.dokuwiki ol li:before  { content: counters(section, ".") ". "; } 
- 
  
 +.dokuwiki .li {text-align: left; display: inline; line-height: 1.9em} 
 +.dokuwiki ol {counter-reset: section; list-style-type: none;}
 +.dokuwiki ol ol {list-style-type: none;  }       
 +.dokuwiki ol ol ol {list-style-type: none; } 
 +.dokuwiki ol ol ol ol {list-style-type: none; } 
 +.dokuwiki ol ol ol ol ol {list-style-type: none} 
 +.dokuwiki ol li {counter-increment: section; }
 +.dokuwiki ol li:before  { content: counters(section, ".") ". ";  }
  
 </file> </file>
  
  
css-ol.txt · Last modified: 2018/05/28 22:29 by 127.0.0.1