ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Child And Sibling Selectors In CSS Explained !

css

css3

html

html5

web

codecanvas

wedev

website

webdeveloper

child-selector

css-siblings

css-sibling

Автор: Code Canvas

Загружено: 2021-09-24

Просмотров: 668

Описание: A child combinator in CSS is the “greater than” symbol. It means “select elements that are direct descendants only”.

The ul li {} selector is a decendant selector. It will select any list items that are anywhere underneath an unordered list in the markup structure. The list item could be buried three levels deep within other nested lists, and this selector will still match it.

The ul "greater than" li selector above is a child combinator selector. This means it will only select list items that are direct children of an unordered list. In other words, it only looks one level down the markup structure, no deeper. So if there was another unordered list nested deeper, the list item children of it will not be targeted by this selector.

There are 3 types of Child selectors in CSS :

1. Child combinator
Using a child combinator you can select only those top level list items and not worry about the large/header styling cascading down to the nested lists and having to fight against that styling.

2. Adjacent sibling combinator
An adjacent sibling combinator selector allows you to select an element that is directly after another specific element.

3. General sibling combinator
The general sibling combinator selector is very similar to the adjacent sibling combinator selector we just looked at. The difference is that that the element being selected doesn’t need to immediately succeed the first element, but can appear anywhere after it.

🔔 Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?...

#css #csstricks #css3

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Child And Sibling Selectors In CSS Explained !

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

CSS :focus-visible Pseudo Selector Explained !

CSS :focus-visible Pseudo Selector Explained !

Learn Every CSS Selector In 20 Minutes

Learn Every CSS Selector In 20 Minutes

CSS Selectors - beyond the very basics

CSS Selectors - beyond the very basics

Learn CSS :not() and :has() selector in 6 Minutes

Learn CSS :not() and :has() selector in 6 Minutes

Do You Really Understand CSS Inheritance?

Do You Really Understand CSS Inheritance?

Курс по Верстке сайтов с Нуля для Начинающих [aroken.ru]

Курс по Верстке сайтов с Нуля для Начинающих [aroken.ru]

Я СДЕЛАЛ ИДЕАЛЬНЫЙ ШАР ИЗ ОБЫЧНОЙ ЗЕМЛИ - ДРЕВНЯЯ ЯПОНСКАЯ ТЕХНИКА

Я СДЕЛАЛ ИДЕАЛЬНЫЙ ШАР ИЗ ОБЫЧНОЙ ЗЕМЛИ - ДРЕВНЯЯ ЯПОНСКАЯ ТЕХНИКА

CSS Sibling Selectors

CSS Sibling Selectors

САМЫЕ ОПАСНЫЕ ШУТКИ ЖВАНЕЦКОГО | Разборы

САМЫЕ ОПАСНЫЕ ШУТКИ ЖВАНЕЦКОГО | Разборы

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]