Drupak Drupal Career Development Program
CSS Basics – Selectors & Floats
This video from the Drupak Drupal Career Development Program provides a comprehensive overview of fundamental CSS concepts used in web development.
Key topics covered include:
- CSS Selectors: The session explores advanced selection techniques, including attribute selectors for targeting specific HTML attributes (such as links), the :not pseudo-class for exclusion, and structural pseudo-classes like :first-child, :last-child, and :nth-child to style specific items within lists.
- CSS Units: The instructor explains various ways to define sizes, comparing pixels (px), percentages (%), em, and rem. There is a specific focus on why rem is often preferred for maintaining consistency and accessibility, as it calculates sizes based on the root element rather than inheriting from parent containers, which helps avoid common layout nesting issues.
- CSS Floats: The final portion of the video addresses the legacy method of using floats for multi-column layouts. The instructor demonstrates how to implement float: left and explains the necessity of clearing floats (typically using an empty
divwithclear: both) to ensure parent containers properly wrap their floated children.
While the instructor acknowledges that modern development practices have largely shifted toward Flexbox and Grid for layout design, understanding floats remains valuable for maintaining or working with legacy codebases.
Course Content
01
HTML, CSS And Tailwind CSS
02
JavaScript: Basic to Advanced
04
Advanced PHP Development
06
Drupal Development Masterclass
WHY CHOOSE US AS YOUR DRUPAL PARTNER?
We combine strong technical skills, business insight and hands-on Drupal AI experience in every project. With over 100 projects delivered since 2012, an Acquia-certified team and clear, honest communication, we turn complex technology into a real advantage for your business.