Div with horizontal scrolling only

The solution is fairly straight forward. To ensure that we don’t impact the width of the cells in the table, we’ll turn off white-space. To ensure we get a horizontal scroll bar, we’ll turn on overflow-x. And that’s pretty much it: .container { width: 30em; overflow-x: auto; white-space: nowrap; } You can see the end-result … Read more

Why use X-UA-Compatible IE=Edge anymore?

In theory, including <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> forces IE to display your HTML using “Standards Mode” (as opposed to “Quirks Mode”), making it more inline with other modern browsers. However, as @David’s answer points out, unless you’re hosting a site in the “Local Intranet” zone, there is very little reason to include it and, according to … Read more

How can I use console logging in Internet Explorer?

You can access IE8 script console by launching the “Developer Tools” (F12). Click the “Script” tab, then click “Console” on the right. From within your JavaScript code, you can do any of the following: <script type=”text/javascript”> console.log(‘some msg’); console.info(‘information’); console.warn(‘some warning’); console.error(‘some error’); console.assert(false, ‘YOU FAIL’); </script> Also, you can clear the Console by calling … Read more

IE10 renders in IE7 mode. How to force Standards mode?

Internet Explorer makes the assumption that most webpages were written to target earlier versions of IE and looks at the doctype, meta tags and HTML to determine the best compatibility mode (sometimes incorrectly). Even with a HTML5 doctype IE will still place your website in compatibility mode if it’s an intranet site. To ensure that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)