Icon Fonts: How do they work?

Glyphicons are images and not a font. All the icons are found within a sprite image (also available as individual images) and they are added to the elements as positioned backround-images: Actual font icons (FontAwesome, for instance) do involve downloading a specific font and make use of the content property, for instance: @font-face { … … Read more

How to use the new affix plugin in twitter’s bootstrap 2.1.0?

I was having a similar problem, and I believe I found an improved solution. Don’t bother specifying data-offset-top in your HTML. Instead, specify it when you call .affix(): $(‘#nav’).affix({ offset: { top: $(‘#nav’).offset().top } });​ The advantage here is that you can change the layout of your site without needing to update the data-offset-top attribute. … Read more

What is the difference between CORS and CSPs?

CORS allows the Same Origin Policy to be relaxed for a domain. e.g. normally if the user logs into both example.com and example.org, the Same Origin Policy prevents example.com from making an AJAX request to example.org/current_user/full_user_details and gaining access to the response. This is the default policy of the web and prevents the user’s data … Read more

How to universally enable scrolling on website that disabled scrolling?

In a browser like Chrome etc.: Inspect the code (for e.g. in Chrome press ctrl + shift + c); Set overflow: visible on body and/or html element (for e.g., <body style=”overflow: visible”>) Find/Remove any JavaScripts that may routinely be checking for removal of the overflow property: To find such JavaScript code, you could for example, … Read more

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