Search This Blog

CSS3 HandsOn - Scroll Bar-Create a CSS Scroll bar as shown in the image above. Please try to recreate the same thing as visually similar as possible

1. CSS3 HandsOn-Scroll Bar



Create a CSS Scroll bar as shown in the image above.
Please try to recreate the same thing as visually similar as possible


Answer
copy as same as

Style.css

.container::-webkit-scrollbar {
    background-color:#fff;
    width:13px
}

.container::-webkit-scrollbar-track {
  box-shadowinset 0 0 6px rgba(0,0,0,0.1);
  background-colorgreen;
  border-radius10px;
}

.container::-webkit-scrollbar-thumb {
  border-radius10px;
  box-shadowinset 0 0 6px green;
  background-color#555555;
}

.container {
    height200px;
    width300px;
    min-width150px;
    background#fff;
    marginauto auto auto auto;
    overflow-xscroll;
    overflow-yscroll;
}
.overflow{
    min-width350px;
    min-height:250px;
}
html{
    width100%;
    height100%;
    displayflex;
}
body{
    displayflex;
    marginauto auto auto auto;
    font-size:22px;
    font-weight:600;
    font-familycomic sans ms;
}




Click on Image: 
  






No comments:

Post a Comment

If you have any doubts, Please let us know.