@@ -80,22 +80,40 @@ adultBtn.addEventListener("click", () => {
8080 document . body . innerHTML = "" ;
8181 document . body . append ( mainHeading ) ;
8282
83- const nextPage1 = document . createElement ( "h1 " ) ;
83+ const nextPage1 = document . createElement ( "h2 " ) ;
8484 nextPage1 . textContent = "Enter Your Height (cm):" ;
8585 document . body . append ( nextPage1 ) ;
8686
87+ nextPage1 . style . margin = "120px 0px 10px 0px" ;
88+ nextPage1 . style . textAlign = "center" ;
89+
8790 const heightInput = document . createElement ( "input" ) ;
8891 heightInput . value = "" ;
8992 heightInput . type = "number" ;
90- heightInput . placeholder = "Enter Height in cm" ;
93+ heightInput . placeholder = "Height in cm" ;
9194 heightInput . min = "139.7" ;
9295 heightInput . max = "243.8" ;
9396 document . body . append ( heightInput ) ;
9497
98+ heightInput . style . display = "block" ;
99+ heightInput . style . margin = "20px auto" ;
100+ heightInput . style . width = "100px" ;
101+ heightInput . style . height = "30px" ;
102+ heightInput . style . borderRadius = "5px"
103+ heightInput . style . fontSize = "small" ;
104+
95105 const heightBtn = document . createElement ( "button" ) ;
96106 heightBtn . textContent = "Continue" ;
97107 document . body . append ( heightBtn ) ;
98108
109+ heightBtn . style . display = "block" ;
110+ heightBtn . style . margin = "150px auto" ;
111+ heightBtn . style . width = "220px" ;
112+ heightBtn . style . height = "40px" ;
113+ heightBtn . style . borderRadius = "15px" ;
114+ heightBtn . style . fontWeight = "bold" ;
115+ heightBtn . style . fontSize = "large" ;
116+
99117 heightBtn . addEventListener ( "click" , ( ) => {
100118 if ( heightInput . value < 139.7 || heightInput . value > 243.8 ) {
101119 alert ( "Enter a height between 139.7 cm and 243.8 cm" ) ;
0 commit comments