css result different if cell splited

debimax <[email protected]> Mon, 13 Apr 2015 23:54:36 -0700 (PDT)
Newsgroups gmane.comp.python.ipython.user
Message-ID <[email protected]>
hi

*excuse me for my bad english.*
I use css to get counter for h1 h2 H3 h4

body{counter-reset: h1  h2 h3 h4 h5}
h1:before {counter-increment: h1;}
h2:before { content: counter(h2,upper-roman) "  "; counter-increment: h2; }
h3:before { content: counter(h2,upper-roman) "." counter(h3) "  ";  
counter-increment: h3; }
h4:before { content: counter(h2,upper-roman) "." counter(h3) "." counter(h4,
lower-alpha) ")  ";   counter-increment: h4; }
h1 { counter-reset: h2 h3 h4 h5;  }
h2 { counter-reset: h3 h4 h5;  }
h3 { counter-reset: h4 h5;}

div.cell  h2 { counter-reset: h3 0;
    border: 3px #ababab solid;
    background-color: #ddd;}

div.text_cell_render { font-size: 12pt;   line-height: 145%; }
div.text_cell_render h1{text-align: center;font-size: 24pt; color:#ff0000; 
text-decoration: underline;}
div.text_cell_render h2{font-size: 20pt;color:#ff0000;  text-decoration:
underline;}
div.text_cell_render h3{font-size: 14pt;color:#ff0000;  text-decoration:
underline;}
div.text_cell_render h4{font-size: 12pt;color:#ff0000;  text-decoration:
underline; }
div.text_cell_render h5 {font-weight: 300;}


It's ok if i use in one cell markdown:



but if cell is splited, i have problem with
 and counter-reset: h3 is not reset.









thank you for help me. 



--
View this message in context: http://python.6.x6.nabble.com/css-result-different-if-cell-splited-tp5092232.html
Sent from the IPython - User mailing list archive at Nabble.com.