How to display an unordered list in two columns

Published on

With the following html and css to display the list as two columns HTML: <ul> <li>1</li> <li>1</li> <li>1</li> <li>1</li> <li>1</li> <li>1</li> <li>1</li> </ul> CSS: ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; }  

How to Configure and Enable Apache KeepAlive settings

Published on

Configure and Enable Apache KeepAlive settings Configure Apache KeepAlive settings Open up apache’s configuration file and look for the following settings. On Centos this file is called httpd.conf and is located in /etc/httpd/conf. The following settings are noteworthy: KeepAlive: Switches KeepAlive on or off. Put in “KeepAlive on” to turn it on and “KeepAlive off” … Continue reading How to Configure and Enable Apache KeepAlive settings

How to fit the image properly in div

Published on

Way to fit the image properly in div. Use the below Javascript for re-size the image: window.imagefit = function (img){ var width = img.naturalWidth; var logoHeight = img.naturalHeight; var ans = calculateAspectRatioFit(width, logoHeight, img.clientWidth, img.clientHeight); img.style.height = ans.height+’px’; img.style.width = ans.width+’px’; } function calculateAspectRatioFit(srcWidth, srcHeight, maxWidth, maxHeight) { var ratio = Math.min(maxWidth / srcWidth, maxHeight … Continue reading How to fit the image properly in div

solution for window.open scrollbars=no not working in chrome

Published on

window.open scrollbars=no not working in chrome I have a link that opens a popup window using window.open(). The problem is the scrollbars=no don’t work in Chrome. They work in IE and Firefox, so I’m thinking it has something to do with Chromes new scroll bars. This is  the code I’m using: html: <a href=”http://mypage.com/mypage.html”>Mypage</a> jQuery: $(‘a’).click(function() … Continue reading solution for window.open scrollbars=no not working in chrome