in Education by
I'm currently working on a lottery app and have coded the UI for it. The problem is that my page is not scrollable right now. It may be because of the gradient background I've added. I've searched for several solutions but none of them worked: StackOverflow StacjOverflow Here is a link to the CodePen My index.html: <!DOCTYPE html> Lottery app

WELCOME TO THE LOTTERY!

Please, enter your winnings numbers here (from 0 to 52):

style.css html, body { font-family: 'Ubuntu', sans-serif; overflow-y: scroll; } .container { height: 100%; width: 100%; display: flex; position: fixed; align-items: flex-start; justify-content: center; } .container::before { content: ""; position: absolute; background: radial-gradient(ellipse at bottom right, #aef78e, #77BA99,#aef78e); background-size: 400% 400%; top: 0px; left: 0px; width: 100vw; height: 100vh; animation: ambient 25s ease-in-out infinite; z-index: -1; } @keyframes ambient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } .lottery-page { width: 80%; border: 3px solid black; border-style : inset; margin-top: 50px; padding: 50px; display: flex; align-items: center; justify-content: center; flex-direction: column; } .main-header { padding: 0px, 50px, 50px, 50px; } .lottery-number, .lottery-number_label, .draw-number{ width: 100px; height: 50px; } .user-input { display: flex; flex-direction: row; flex-wrap: wrap; margin: 100px, 0px; padding: 100px, 0px; } .action-header { margin-bottom: 70px; } label, input { display: block; text-align: center; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input[type="number"] { font: 15px/24px 'Muli', sans-serif; color: #333; width: 150px; box-sizing: border-box; letter-spacing: 1px; margin: 30px; } .number-wrapper { position: relative; } /* Input animation */ .lottery-number { border: 3px solid #ccc; padding: 7px 14px 9px; transition: 0.4s; } JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Your issue is because you've added position: fixed; on your container. I would apply your background as a background-image element on your tag in CSS.

Related questions

0 votes
    This question already has answers here: Simulating transform-origin using translate (2 answers) Closed 3 years ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    This question already has answers here: Simulating transform-origin using translate (2 answers) Closed 3 years ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    Thanks for helping. I am trying to develop a static carousel (it won't move, but it acts like one) that stretches ... screen (but hidden, so no scrollbar). Here is the markup:...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    It is Mandatory that the doctype declaration is the first line of every HTML5 Page. 1. True 2. False...
asked Apr 10, 2021 in Education by JackTerrance
0 votes
    I have following code and I want to get data from service. I have set everything from what I get ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
0 votes
    I have following code and I want to get data from service. I have set everything from what I get ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 12, 2022 in Education by JackTerrance
0 votes
    Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I have a Div element that pops up when clicking on a icon. This works fine on desktop. But when ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 3, 2022 in Education by JackTerrance
0 votes
    How can i wrap data in the table. Currently if template name is too long i get a scroll bar. I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
0 votes
    My context IINM, the percentage-height assumes that he height of the parent is available when the height is ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 8, 2022 in Education by JackTerrance
0 votes
    I want to display the label of an input inside its input, so that when I click the input, the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    As you can see on jsfiddle bellow, I'm using a vue component called Vue Multiselect. When the text ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    I have created floating label in input field.In chrome view is working fine, but not properly viewed in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
...