Using Chrome’s Element Inspector in Print Preview Mode?

Note: This answer covers several versions of Chrome, scroll to see v52, v48, v46, v43 and v42 each with their updated changes. Chrome v52+: Open the Developer Tools (Windows: F12 or Ctrl+Shift+I, Mac: Cmd+Opt+I) Click the Customize and control DevTools hamburger menu button and choose More tools > Rendering settings (or Rendering in newer versions). … Read more

Removing input background colour for Chrome autocomplete?

You can change input box styles as well as text styles inside input box: Here you can use any color e.g. white, #DDD, rgba(102, 163, 177, 0.45). But transparent won’t work here. /* Change the white to any color */ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active{ -webkit-box-shadow: 0 0 0 30px white inset !important; } Additionally, you … Read more

Remove blue border from css custom-styled button in Chrome

Doing this is not recommended as it regresses the accessibility of your site; for more info, see this post. That said, if you insist, this CSS should work: button:focus {outline:0;} Check it out or JSFiddle: http://jsfiddle.net/u4pXu/ Or in this snippet: button.launch { background-color: #F9A300; border: none; height: 40px; padding: 5px 15px; color: #ffffff; font-size: 16px; … Read more

How do I get ASP.NET Web API to return JSON instead of XML using Chrome?

Note: Read the comments of this answer, it can produce a XSS Vulnerability if you are using the default error handing of WebAPI I just add the following in App_Start / WebApiConfig.cs class in my MVC Web API project. config.Formatters.JsonFormatter.SupportedMediaTypes .Add(new MediaTypeHeaderValue(“text/html”) ); That makes sure you get JSON on most queries, but you can … Read more

Getting Chrome to accept self-signed localhost certificate

For localhost only Simply paste this in your chrome: chrome://flags/#allow-insecure-localhost You should see highlighted text saying: Allow invalid certificates for resources loaded from localhost Click Enable. Other sites Try typing thisisunsafe anywhere on the window, and the browser should let you visit the page. -OR- For a local self-signed cert that avoids arcane commands, specialized … Read more

How to remove focus border (outline) around text/input boxes? (Chrome) [duplicate]

This border is used to show that the element is focused (i.e. you can type in the input or press the button with Enter). You can remove it with outline property, though: textarea:focus, input:focus{ outline: none; } You may want to add some other way for users to know what element has keyboard focus though … Read more

Hide scroll bar, but while still being able to scroll

Just a test which is working fine. #parent{ width: 100%; height: 100%; overflow: hidden; } #child{ width: 100%; height: 100%; overflow-y: scroll; padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */ box-sizing: content-box; /* So the width will be 100% + 17px */ } Working Fiddle JavaScript: Since the scrollbar width differs in different … Read more

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