CSS content-visibility


The CSS language has lots of little spaces which are annoying to browse. In between CSS homes to conceal a container and its contents, there is still space for enhancement. exposure: concealed keeps height and width stability while display screen: none on a container conceals whatever. You can utilize container > > * to conceal all contents of a container, however what if there was a much better method?

There is a much better method to conceal the contents of a component while appreciating the container’s border and measurements. That much better method is utilizing the content-visibility home:

 my-container. contents-loading {
content-visibility: concealed;
}

A demonstration of such performance:

See the Pen Untitled by David Walsh ( @darkwing). on CodePen

Preventing a container > > * selector by utilizing content-visibility: concealed is a lot better from an upkeep viewpoint!

  • 6 Things You Didn’t Know About Firefox OS

    Firefox OS is all over the tech news and for excellent factor: Mozilla’s lastly offered web designers the platform that they require to produce apps the method they have actually been developing them for several years– with CSS, HTML, and JavaScript. Firefox OS has actually been quickly enhancing …

  • Create a Sheen Logo Effect with CSS

Like this post? Please share to your friends:

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: