Just set your inner div in center
“ You can justify the content of your page or content within the layout. The justify-content property aligns the flexible container's items when the items do not use all available space on the main-axis... ”Find start and end position of selected text
“ First of all, you have to know that how to get the currently selected text on the page by using the JavaScript. So, Javascript provided a method for retrieving the current selection of the page by usi... ”How to create searchable spinner in android
“ Hello, Let's see the above example for your awesome dropdown list to search. Searchable Spinner is a dialog spinner with the search feature which allows to search the items loaded in th... ”How do I set a picture as my background on my Android?
“ Hmm, I think you want to show the background image in your open activity view. But you want to show this one from your gallery and it should be selected randomly from your gallery.... ”Android open url external browser and internal WebView
“ You can open link of the WebView externally from android webview without leaving the app. For this action you need to set a WebViewClient class in your WebView. No n... ”Hide specific elements while printing web page
“ Sometime we need to show all content on the web page but hide some content for the print. So, you can use this trick for that. Hide specific elements while printing web page: To hide an element, you... ”Javascript trigger hashchange
“ You can get the value of #hashtag from the URL if user click on any link in your page. There are two ways to find the id, First by using Javascript and the second&n... ”Enable and Disable scroll with event listener javascript
“ Add and Remove event listener with javascript is very simple. First, you need to create your function with your business logics. We have taken an example of stop and start scrolling&nbs... ”