Newsletters 📪
How to Set Counter in Css
How to Set Counter in Css
The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element.
/* Set "my-counter" to 0 */
counter-set: my-counter;
/* Set "my-counter" to -1 */
counter-set: my-counter -1;
/* Set "counter1" to 1, and "counter2" to 4 */
counter-set: counter1 1 counter2 4;
/* Cancel any counter that could have been set in less specific rules */
counter-set: none;
/* Global values */
counter-set: inherit;
counter-set: initial;
counter-set: revert;
counter-set: revert-layer;
counter-set: unset;
The counter-set
property is specified as either one of the following:
- A
<custom-ident>
naming the counter, followed optionally by an<integer>
. You may specify as many counters to reset as you want, with each name or name-number pair separated by a space. - The keyword value
none
.
The value to set the counter to on each occurrence of the element. Defaults to 0
if not specified. If there isn't currently a counter of the given name on the element, the element will create a new counter of the given name with a starting value of 0 (though it may then immediately set or increment that value to something different).
No counter set is to be performed. This can be used to override a counter-set
defined in a less specific rule.
How to create a folder in Docker
To create a folder in docker or a file create a directory for the build context and cd into it. You can use the classic mkdir command to create a folder in Docker.
Create Directory if not Exists in DockerFile
To create a Directory that does not exist you have to use the --p command along with the mkdir command. Becausemkdir isn't recursive by default -- it expects the immediate parent directory to exist.
Dockerfile mkdir permission denied
Docker Filesystems and Docker containers work in a similar manner to filesystems outside a Docker container. To provide users read/write/execute permissions use this command chmod 0777 /usr/local/docker/foo
Async Await in Do While Loop
In this post, we are going to checkout Async Await in Do while loop with examples. Do while Loop in Typescript is same as the Do While Loop in Javascript.
Create Canvas Dynamically in Angular
We can use Renderer API to create canvas dynamically in Angular which can be imported from angular/core package. Renderer API allows DOM maniplulation.
Indian Currency Pipe in Angular
Indian currency pipe in Angular, Currency pipe angular without symbol, Angular Currency Pipe is one of the built in pipe in Angular used to format currency value according to given country code,currency,decimal,locale information.
Adding a script to an Angular Library
Adding External Scripts in Angular Library or application. You can add external scripts in angular application on runtime using javascript with few lines of code.
Repository is not clean. Please commit or stash any changes before updating
Repository is not clean. Please commit or stash any changes before updating. If you are getting such kind of Error use the --force flag along with the ng update command
Docker mkdir permission denied Mac
Docker mkdir permission Failed ? For using data volumes in Docker by command-line and If your Docker host is on the Linux platform, you can find Docker volumes by /var/lib/docker/volumes path.
Uninstall angular cli using yarn
To uninstall any package using yarn you have to use the "remove" keyword along with the package name. You can also add in "global" keyword to uninstall the package globally using yarn from your system.