
The Universal Selector uses an asterisk and selects all elements:
* { color: red; }
The following example selects all elements within the class navigation
* .navigation { color: #fff; }
You can use two asterisks to select all great grandchild elements and below:
body * * div { border: 1px solid red }
Syntax:
input[attribute=value] { ... }
Example:
input[href='http://www.google.com'] { color: green; }
Use:
input[attribute^='string'] { ... }
to select all input elements with the word 'string' in that attribute in the beginning.
input[attribute$='string'] { ... }
to select all input elements with the word 'string in that attribute in the end.
Welcome to my All About CSS - The Complete CSS Adventure course!
My name is Philipp and I work as Software Engineer/Front-End Developer. I want to take you with me on this exciting adventure where we learn about CSS Selectors, Pseudo Elements and much much more. We will create together awesome projects such as a really cool Timeline or we will draw a cute little bear with pure CSS.
Additionally I offer you little questions between my lessons so you deepen the learned features of CSS. It does not matter if you are new to CSS or if you know already some. Maybe you want to become a Web Developer or this is just your hobby and you want to create cool Websites. In both cases you are perfectly prepared in the end of this course to encounter numerous obstacles.
This course contains:
To continue improving my courses I would like when you give me your feedback to the course. Feel also always free to contact me in case you have questions or you just want to talk to me.
I hope you have fun and enjoy my course.