Skip to main content

Posts

Showing posts with the label adjacent selector

Project Study: Five Advanced CSS Selectors You Should Know

Today, I am going to share five advanced CSS selectors from Udemy course. Then, I will create a simple project to explain how we apply each selectors. Those five advanced selectors are: Star Selector:  Whatever we do, it will apply to every single element. Descendant Selector:  The way that descendant selector works is that it takes two or more tag names or two or more selectors and you chain them together. Adjacent Selector:  With adjacent selector, it will let us select elements that comes after another element. Attribute Selector:  The attribute selector is a way to select elements based of any attribute. Nth of Type:  The way of nth of type works is it takes a number like three or five and then it selects every end of a specific element. So if I want to select every fifth paragraph, I could use nth of type. I know it is not clear to understand without apply them in a project and see how they work. Now I am going to create a simp...