single-post.html

How do I write CSS?

Question: How do I write CSS, for the whole site or just a part of it?

Answer: The main idea is that it should no longer be necessary to write CSS as Global Styles will cover it.

In practice, until Global Styles can do everything then there’ll be a need for some custom CSS.

There are a variety of solutions:

  • I use my oik-css plugin.
  • There’s a Blocks CSS plugin.
  • Some people may just write custom CSS using the custom HTML block.

References

How do I overwrite inline CSS?

oik-css – CSS and GesHI blocks

Blocks CSS: CSS Editor for Gutenberg Blocks

For examples of oik-css see:

WordPress version: 5.7.2

Gutenberg version: 10.8.0

© Copyright Herb Miller, Bobbing Wide 2021