lundi 26 août 2019

How do I enable bounce overscroll on the body only (not header and footer)?

I would like my webpage to have a scrollable container with a fixed header and footer. When the end of the scroll area is reached I want the bounce effect that is the default.

I have tried a lot of things but all the solutions do one of two things: Either the overscroll effect is disabled everywhere which results in a very abrupt stop when hitting the top or bottom of the page, or the bounce effect is there but the header and footer bounce too. I want the header and footer to stay fixed always but when the boundary of scrollable container is reached I want something to indicate that. I've included a stripped down piece of code that I've been using for testing.

Any help is very much appreciated! Thank you!

<html>
<head>
  <style>
    html{
      background: #222222;
    }
      header {
        width: 100vw;
        height: 10vh;
        background: black;
        color: white;
        text-align: center;
        position: fixed;
      }
      footer {
        width: 100vw;
        height: 10vh;
        background: black;
        color: white;
        text-align: center;
        position: fixed;
      }
      .container {
        padding: 100px;
        height: 100%;
        overflow: scroll;
        -webkit-overflow-scrolling: touch; 
        background-color: #eaeaea;
        display: block;
        height: 200px;
        overflow-y: scroll;
        text-align: center;
      }
      body {
        color: red;
        /* Set to auto to enable elastic scroll bounce effect */
        overscroll-behavior: none;
      }
  </style>

</head>
  <body>
    <header>HEADER</header>
      <div class="container">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
    <footer>FOOTER</footer>
  </body>
</html>




How to create the ability to add new photos to your site?

I'm creating a new site where you need to be able to add new photos.

But i don`t know how to realize it.

Please give me some direction or possible solution to this problem.




Why does -webkit-text-stroke look different on Chrome and Safari?

I'm trying to build a website but I've realised that the text stroke is a different weight between Chrome and Safari. On Chrome it's thick and on Safari it's really thin:

enter image description here enter image description here

How can I fix this so that they look the same on both browsers?

CSS:

enter image description here




GPLv2 licence usage

I've already read some articles about the GPLv2 licence, but I'm still not sure about this. Can I use some GPLv2 licenced plugin/software for my service, when I want to have this service paid for customers?




Chinese web site authorisation

Please advise, need to create an educational website for China, advise, you need to make authorization on the site, but there are no company certificates, so cant using WeChat. Tell me what alternative methods can be used to register on the site, also advise similar topics.




How can I have common login for all my web apps under the same domain?

I have a website in which I have different web applications like opencart, osclass, wordpress and vanilla forums. How can I make same user login across all my web apps. I want to register as user and as bussiness account across this web applications. You can check [my website][1].

I used OAuth login with facebook and google. But still the user login is not that much satisfactory.




Want to create a logo generator similar to looka.com

I'm building a logo creator or generator website very similar to looka.com. I've designed the static pages but stuck in creating the logo generator which ask certain questions from the user and then create hundreds of logos automatically using the information provided by the user. I don't have any idea how this is done. Please help, I'm in the middle of this project.

Thank you!