Category: HTML & CSS
-

Why css padding auto Fails and What to Use Instead
Padding on an HTML div needs a valid size. See why auto fails, how percentages behave, and which margin or layout rule centers a box while preserving inner space.
-

Lorem Ipsum HTML: Test a Layout Before Real Copy Arrives
Add Lorem ipsum to HTML to check a layout before copy arrives. See a working example, test realistic text lengths, and catch placeholders before release.
-

CSS Cleaner: Reduce Clutter Without Changing the Cascade
Cleaning up a CSS stylesheet can change the cascade. Learn to review duplicate rules, find unused selectors, and compare states before and after editing.
-

Fieldset HTML: Group Form Controls with a Legend
Group HTML form controls with a fieldset and legend. See a working radio example, learn why labels still matter, and check disabled behavior and accessibility.
-

Underline in CSS: Style and Remove Text Lines
Add an underline using CSS and control its color, thickness, style, and offset. Learn when to remove a line and when a bottom border is the better choice.
-

CSS Image Src: Ways to Change What an Image Shows
Change an image source with CSS alternatives, HTML, or JavaScript. Learn which approach updates the actual URL and which only changes the visual result.
-

Build a Usable CSS Range Slider
Style a slider bar with CSS and build a usable range control. See a complete example, browser-specific track and thumb rules, and a practical keyboard test.
-

Aside HTML: How to Mark Related Content Clearly
The HTML aside element can clarify a page’s structure. See a complete example and learn where related notes belong, how to label them, and when to use a div.