Questions
CSS questions
Choose a question page, learn the concept, then test your understanding with a quiz.
Angular ngClass Conditional Class Binding Explained
Learn how to use Angular ngClass for conditional classes, fix common binding mistakes, and understand why this template error happens.
CSS :not() Selector for Elements Without a Class or Attribute
Learn how to use the CSS :not() selector to target elements that do not have a specific class or attribute, with examples and common pitfalls.
CSS Font Scaling Relative to Container Size: %, em, rem, vw, and Responsive Text
Learn how CSS font scaling really works and how to make text responsive using %, em, rem, vw, clamp(), and media queries.
CSS Parent Selector Explained: Selecting a Parent <li> from an <a>
Learn whether CSS has a parent selector, how :has() works, and practical alternatives for styling a parent li from a child anchor.
CSS Previous Sibling Selector: What Exists and How to Work Around It
Learn whether CSS has a previous sibling selector, why it does not, and practical ways to style earlier elements using CSS alternatives.
CSS Transitions on display: Why They Don't Work and How to Fade Elements In
Learn why CSS cannot transition the display property and how to create smooth fade-in dropdown menus using opacity and visibility.
Can CSS Classes Inherit Other Classes? Understanding Reuse in CSS
Learn whether CSS classes can inherit other classes, and how to reuse styles in CSS using multiple classes, selectors, and practical patterns.
Can You Style Half of a Character in CSS? Techniques for Split Text Effects
Learn how to style half of a character in CSS using layered text, gradients, and pseudo-elements for dynamic split-letter effects.
Conditionally Apply a CSS Class in AngularJS
Learn how to conditionally apply a class in AngularJS using ngClass, selectedIndex, and ngRepeat with simple examples and common mistakes.
Converting HTML and CSS to PDF in PHP: What to Expect and Common Approaches
Learn how HTML-to-PDF conversion works in PHP, why CSS support varies, and how to choose a practical server-side approach.
HTML Triangle Characters for Up/Down Toggle Indicators
Learn which HTML triangle characters and entities to use for up/down toggle indicators, including Unicode symbols and practical examples.
Hide Scrollbars but Keep Scrolling in CSS
Learn how to hide scrollbars while keeping scrolling enabled using CSS, including browser-specific rules for Chrome, Firefox, and IE/Edge.
How CSS Triangles Work: Borders, Zero Size, and Shape Tricks
Learn how CSS triangles work using zero width/height and borders. Understand the visual trick with clear examples and practical uses.
How to Add Space Between Flexbox Items in CSS
Learn how to set space between flexbox items using CSS gap, margins, and practical layout patterns with clear examples.
How to Align Checkbox and Label Text Consistently with CSS
Learn how to align checkbox inputs and labels consistently across browsers using simple HTML and CSS patterns.
How to Align Content to the Bottom of a Div in CSS
Learn how to align content to the bottom of a fixed-height div using CSS, with simple examples using flexbox and older techniques.
How to Auto-Resize Images While Maintaining Aspect Ratio in CSS
Learn how to resize images to fit a container while preserving aspect ratio using simple CSS techniques and practical examples.
How to Center Text Horizontally and Vertically Inside a Div in CSS
Learn how to center text inside a div both horizontally and vertically using CSS with flexbox, grid, and line-height.
How to Center a Bootstrap 3 Column in the Grid System
Learn how to center a column in Bootstrap 3 using rows, offsets, and text alignment with clear examples and common mistakes.
How to Center a div Horizontally in CSS
Learn how to center a fixed-width div horizontally in CSS using margin auto, with examples, mistakes, and real-world layout tips.
Page 1 of 4 - 72 questions