Search
 
SCRIPT & CODE EXAMPLE
 

CSS

counter-reset ol css

/* counter-reset makes it possible to number elements 
   similarly to an ordered list. First, the counter is
   defined through the counter-reset property and then 
   that counter is incremented using the counter-increment
   property as shown below. 
*/

article {
	counter-reset: article-items; /* initialize the counter */ 
}

section {
	counter-increment: article-items; /* increment counter for every section */
}

section h2::before {
    /* Use counter to number h2 headings of different sections */ 
 	content: counter(article-items) '. ';  
}

Comment

PREVIOUS NEXT
Code Example
Css :: equivalent zoom css 
Css :: javascript read me text 
Css :: css dark mode 
Css :: css radio button size 
Css :: show ellipsis after text length 
Css :: ul list style type image 
Css :: before content from attribute 
Css :: css center 
Css :: css 2 bilder nebeneinander 
Css :: background-color: transparent; 
Css :: css rotate 3d 
Css :: how to add text stroke in css 
Css :: html glow on hover 
Css :: html text not wrapping 
Css :: add padding to scrollbar 
Css :: css select none 
Css :: blink css 
Css :: rotate image css 
Css :: table font size 
Css :: how to change another element on hover 
Css :: make a circle in css 
Css :: reset specific css 
Css :: margin 0 auto 
Css :: background color css 
Css :: css get the image to the center and to make it relative to the width of the parent. 
Css :: text flow top to bottom 
Css :: why is my css code not working 
Css :: focus selector css 
Css :: How to specify that the background image should be shown once, in the top right corner. 
Css :: display content in column css 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =