• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Kriztine Mendoza

Senior .NET Developer & Tech Partner for Scalable Software Solutions

  • Home
  • About
  • Work
  • Services
  • Contact Me

css

Scrollbar doesn’t show on Safari

November 5, 2018 by kriztine

The Story

One of the applications we are working on requires a modal popup to show the Terms and Conditions after the user registered to the app. Initially, the Accept and Decline buttons are disabled. The user should read the Terms and Conditions first before he/she can click a button. The user has to scroll down to the bottom of the page before the buttons become enabled. Now, we know that the Terms and Conditions are quite long, so the browser will automatically show a scrollbar.

However, the scrollbar is hidden in Safari browser by default. You can only see it when you scroll down using a mouse or touching the screen of your device. This can lead to confusion if the user sees the Terms and Conditions popup, but not being able to click the Accept or Decline button.

Solution

1. Use CSS to override the default scrollbar’s styling and visibility

/* Override the default to keep the scrollbar always visible */

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #8f8f8f;
    -webkit-box-shadow: inset 0 0 1px rgba(255,255,255,0.5);
}

2. Add a note at the bottom of the popup to inform the user to scrolldown to be able to read the full text.

 

Filed Under: .Net Development, Design Tagged With: css, Front-End Development

Primary Sidebar

Recent Posts

  • The tooltip or Intellisense for methods do not appear!
  • Scrollbar doesn’t show on Safari
  • WebResource.axd File Compression
  • X-Frame-Options header and X-Content-Type-Options = nosniff
  • Solved: Truncation Error when Importing from MS Excel to SQL Server

Categories

  • .Net Development (7)
  • Design (4)
  • How-To's (3)
  • Marketing (1)
  • Project Management (2)
  • Projects (1)
  • SQL (4)
  • System Administration and Configuration (2)
  • Tools (8)

Archives

SERVICES
  • Responsive Web Design
  • Custom Web/Software Development
  • Content Management System
  • API Development and Integration
  • Database Design and Management
  • System Configuration and Administration
QUICK LINKS
  • About
  • Services
  • Dev Notes
  • Resources
  • Contact me
GET IN TOUCH
  • +6349.539.1339
  • contact@kriztine.com
  • kriztine.tech@gmail.com

© 2025 · All Rights Reserved · Kriztine Mendoza

Attributions · Privacy Policy

"Whatever you do, work at it with all your heart, as working for the Lord..." - Colossians 3:23