Skip to content
SiteLint logoVisit the SiteLint homepage

Catch issues, optimize and improve website

  • Platform
    • Web Automated Audit
    • Digital Accessibility Audit
    • Performance Audit
    • Quality Assurance Audit
    • Technical SEO Audit
    • User Feedback Recordings
  • Pricing
  • Blog
    • Documentation
    • Tools
    • Playground
    • Contact
  • Log in
  • Sign up
  1. Home Page
  2. css

Tag: css

The switch button

Native toggle switch button with fallback using HTML and CSS only

You can create a native toggle switch button using only HTML and CSS by using a checkbox input and styling it accordingly.

However, there is also a way to use the switch attribute that turns the native checkbox into the switch button.

Continue reading “Native toggle switch button with fallback using HTML and CSS only”
Drawing pad with text "Truncating long text"

Truncating text and making it accessible

To create accessible truncated text, it’s crucial to consider both the visual presentation and accessibility implications. Here are key points and techniques to achieve this.

Continue reading “Truncating text and making it accessible”
A person standing at a smartboard monitor with an "CSS and hiding content from screen readers in pseudo-elements" written on it.

Hide content in CSS pseudo elements from screen readers

Hiding content generated through the content CSS property can be done with a one-line code.

Continue reading “Hide content in CSS pseudo elements from screen readers”

Search in sitelint.com

Struggling with writing tests for accessibility?

You can cut 80% of the time you spend writing tests using SiteLint.

Book a call

Resources

  • About us
  • Contact us
  • Terms
  • Privacy Policy
  • Accessibility Statement
  • Credits
  • Sitemap
  • RSS

Explore

  • Blog and news
  • Documentation and guidelines
  • Tools for developers
  • Accessibility and WCAG filter rules summary
  • Green coding logoGreen Coding and Sustainability in Software

Visit us on

  • SiteLint X's account
  • SiteLint YouTube's account

Payments service

  • Payments by Stripe

Latest on Blog

  • 2025-06-28Escape HTML string tags in JavaScript
  • 2025-06-18Implement “Please wait” message while iframe is loading using JavaScript
  • 2025-06-07Disabling video autoplay in Brave browser
© Copyright 2025 Sitelint.com

We use cookies. Learn more about our Privacy Policy.

Opens in a new window.Opens an external site.Opens an external site in a new window.
SiteLint Audits and Monitoring - Website optimization and compliance made easy