JBM-Computing

test page

Stuff I’m working on...

 

 

CSS reference

CSS combinators:

,: selector list- all matching elements
(space): descendant- all elements that are descendants
>: child- all elements that are direct children
+: next sibling- element that is directly after - both share the same parent
~: subsequent-sibling- all elements that are next siblings - both share the same parent

 

note: siblings = brother/sister i.e. same level, not parent/child

 

CSS pseudo-classes:

:link- unvisited links
:visited- visited links
:hover- link on mouse over
:active- activated link
:first-child- first child of its parent

 

CSS pseudo-elements:

::first-line- first line of a text
::first-letter- first letter of a text
::before- insert some content before the content of a specified element
::after- insert some content after the content of a specified element
::selection- the part of a text that is selected
::backdrop- the viewbox behind a <dialog> box

 

Links

W3schools

CSS combinators - ref

CSS combinators - tutorial

pseudo-classes - ref

pseudo-classes - tutorial

pseudo-elements - ref

pseudo-elements - tutorial

JBM-Computing

part of J E Mynott Limited

web: www.Mynott.uk

site map / contentswebsite privacy
glossarycontact me
©2000-2025 JBM-Computing
Facebook Twitter YouTube print