Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

modal center of screen

#signUpModal {
	display: 'flex';
	justify-content: 'center';
	align-items: 'center';
}
Comment

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'
        })
    }
Comment

PREVIOUS NEXT
Code Example
Javascript :: search if value exists in object javascript 
Javascript :: jquery modal if clicked outside 
Javascript :: set cookie in node 
Javascript :: console log object js 
Javascript :: jquery refresh image without refreshing page 
Javascript :: jquery click outside 
Javascript :: trigger send parameter 
Javascript :: javascript reload page 
Javascript :: ip regex javascript 
Javascript :: Error: `createStackNavigator()` has been moved to `react-navigation-stack`. 
Javascript :: javascript alert get text 
Javascript :: JavaScript how to put value 
Javascript :: splidejs autoscroll 
Javascript :: split date in javascript 
Javascript :: nodejs on exit event 
Javascript :: how to sum two var in jquery 
Javascript :: curl post json file 
Javascript :: flutter parse json 
Javascript :: USA phone number validator angular 
Javascript :: link script react17 
Javascript :: UpperCase every first letter in each word in str 
Javascript :: factorial function javascript 
Javascript :: how to divide array in chunks 
Javascript :: random integer in nodejs 
Javascript :: d3.json() function 
Javascript :: store id of an element jquery 
Javascript :: how you can use javascript to play the sound for the button color selected 
Javascript :: how to make a rectangle in javascript 
Javascript :: remove specific property from json object javascript 
Javascript :: js datetime local 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =