Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css counters

body {
  counter-reset: section;                    /* On initialise le compteur à 0 */
}

h3::before {
  counter-increment: section;                /* On incrémente le compteur section */
  content: "Section " counter(section) " : "; /* On affiche le compteur */
}
Comment

CSS Counters

body {
  counter-reset: section;
}

h2::before {
  counter-increment: section;
  content: "Section " counter(section) ": ";
}
Comment

css counter

<style>
    body {
        counter-reset: ctr;
    }

    div.fruit::before {
        counter-increment: ctr;
        content: counter(ctr) ".) ";
    }
</style>

<div class="fruit">Apple</div>
<div class="fruit">Banana</div>
<div class="fruit">Orange</div>
Comment

PREVIOUS NEXT
Code Example
Css :: tailwind center vertically 
Css :: css selector not contains attribute 
Css :: text-overflow: ellipsis; 2 line 
Css :: css how to remove underline from visited sites 
Css :: transform scale 
Css :: reset all input styles with 1 property css 
Css :: css comment 
Css :: nth child css tricks 
Css :: prevent css animation reset 
Css :: onhover mouse pointer css 
Css :: css vertical align center 
Css :: centre align in position absolute 
Css :: what does clearfix for floats do in css 
Css :: how to add a background color in css 
Css :: how to crop images in css 
Css :: how to set a div size to full screen 
Css :: css font family narrow fonts 
Css :: object-fit 
Css :: webpack/load/css 
Css :: multiple divs next to each other 
Css :: bootstrap card hover effect 
Css :: crop image instead of resize css 
Css :: css linear gradient 25% of page 
Css :: how to move text down css 
Css :: border buttom color 
Css :: how to add hover effect in emotion 
Css :: laravel enum column 
Css :: can span have width 
Css :: import tailwind 
Css :: css percentrage minus px 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =