Prevent line-break of span element

Put this in your CSS: Get more information here: http://www.w3.org/wiki/CSS/Properties/white-space white-space The white-space property declares how white space inside the element is handled. Values normal This value directs user agents to collapse sequences of white space, and break lines as necessary to fill line boxes. pre This value prevents user agents from collapsing sequences of white space. Lines are only … Read more

forbidden 403 on image URLS

Looks like when the HTTP request header referrer is anything other than http://4chan.org, I get this issue. Ive simply added the below to the HTML page and its fixed the problem: Once your Angular app is loaded, you can also use Firefox Developer Console (Network Tab) modify image request (ie 403) and remove referrer header to … Read more

Floating div positioning

. I need a floating rectangle (100% width, 100px height) to appear exactly 20px above the bottom of a page. How can I do that? The code below shows the rectangle at the bottom of the browser window not the page – so if the page is taller than what can fit in the screen, … Read more

Recommended way to embed PDF in HTML?

Probably the best approach is to use the PDF.JS library. It’s a pure HTML5/JavaScript renderer for PDF documents without any third-party plugins. Online demo: https://mozilla.github.io/pdf.js/web/viewer.html GitHub: https://github.com/mozilla/pdf.js

How to add jQuery code into HTML Page

1) Best practice is to make new javascript file like my.js. Make this file into your js folder in root directory -> js/my.js . 2) In my.js file add your code inside of $(document).ready(function(){}) scope. 3) add your new js file into your html