AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

CSS Style Scrollbar


CSS Tutorial » CSS Style Scrollbar

With webkit browsers, we can use this pseudo elements to customize the browser's scrollbar:

We can add Style text as:
Internal - by using a <style> element in the <head> section
External & External - by using an external CSS file as style.css

Note: Scrollbars - not supported in Firefox and IE/Edge.


How to create Style Custom Scrollbar - examples


Webkit browsers, Chrome, opera and Safari, supports non-standard ::-webkit-scrollbar You can try to execute the following code to change Custom Scrollbar on this page.

Example:
Example 1, How to create Style Custom Scrollbar - examples:

  <!DOCTYPE html>
<html>
<head>
<title>create Style Custom Scrollbar - examples - example</title>
<style>
/* width */
::-webkit-scrollbar {
width: 16px;
}

/* Track */
::-webkit-scrollbar-track{
background: #66FF99;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #007927;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #003C13;
}
</style>
</head>
<body>
<h1>CSS create Style Custom Scrollbar</h1>
<p><strong>Note:</strong> -webkit-scrollbar is not supported for Firefox and IE/Edge.</p>
<?php
echo str_repeat("Hello America! here is my text what I need for this page.
here we add the text that corresponds to the title and pages
we want to build.
Using Custom CSS Scrollbar we can add more windows on the same page
and each with more content on the screen.
<br />",14);
?>
</body>
</html>
Note: Use external CSS instead.


How to create CSS scrollbar with box shadow: - examples


You can try to execute the following code to change CSS scrollbar with box shadow on this page.

Example:
Example 1, How to create CSS style text size, color and bold - examples:

  <!DOCTYPE html>
<html>
<head>
<title>create Style Custom Scrollbar - examples - example</title>
<style>
/* width */
::-webkit-scrollbar {
width: 24px;
}

/* Track */
::-webkit-scrollbar-track{
box-shadow: inset 0 0 6px navy;
border-radius: 12px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: blue;
border-radius: 12px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #33CCFF;
}
</style>
</head>
<body>
<h1>CSS create Style Custom Scrollbar</h1>
<p><strong>Note:</strong> -webkit-scrollbar is not supported for Firefox and IE/Edge.</p>
<?php
echo str_repeat("Hello America! here is my text what I need for this page.
here we add the text that corresponds to the title and pages
we want to build.
Using Custom CSS Scrollbar we can add more windows on the same page
and each with more content on the screen.
<br />",14);
?>
</body>
</html>
Note: Use external CSS instead.


css style scrollbar, in div, firefox, cross browser, horizontal, ie, edge, button, overflow
CSS Style Scrollbar - css tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.