how to make a modal stay center of screen
//add a onclick function to your modal button
<button type="button" class="header__button" data-toggle="modal" data-target="#signUpModal" onclick="modalCenter()">
signup
</button>
//add below function to your scripts
function modalCenter() {
$('#signUpModal').css({
'display': 'flex',
'justify-content': 'center',
'align-items': 'center'
})
}
Also in JavaScript:
- javascript project ideas
- vuejs get value of checkbox group
- populate dropdown with a variable
- change version webpack-dev-middleware
- javascript automatic click
- npm start react
- javascript return string
- check if a variable is array in javascript
- points in three js
- get image center pixels nodejs
- async await in forloops
- heroku h10 error aws
- core.js:13987 'mat-date-range-input' is not a known element
- javascript inheritance
- javascript count element in array
- nodejs increase heap size
- parse integer javascript
- likert scale javascript code
- open link in new tab javascript
- float to euro curency
- npm run test:coverage command in jest
- store current date in chrome storage extension
- javascript audio duration property returns infinity
- fetch api react