How to embed images in email

As you are aware, everything passed as email message has to be textualized. You must create an email with a multipart/mime message. If you’re adding a physical image, the image must be base 64 encoded and assigned a Content-ID (cid). If it’s an URL, then the <img /> tag is sufficient (the url of the … Read more

How to hide the bar at the top of “youtube” even when mouse hovers over it?

This answer no longer works as YouTube has deprecated the showinfo parameter. You can hide the embedded player’s title bar by adding &showinfo=0. You cannot completely remove all the links to the original video. Here is the best you can do <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/videoid?modestbranding=1&autohide=1&showinfo=0&controls=0″ frameborder=”0″ allowfullscreen></iframe> This code will remove the title bar, YouTube … Read more

How to embed fonts in HTML?

Things have changed since this question was originally asked and answered. There’s been a large amount of work done on getting cross-browser font embedding for body text to work using @font-face embedding. Paul Irish put together Bulletproof @font-face syntax combining attempts from multiple other people. If you actually go through the entire article (not just … Read more

Shrink a YouTube video to responsive width

You can make YouTube videos responsive with CSS. Wrap the iframe in a div with the class of “videowrapper” and apply the following styles: .videowrapper { float: none; clear: both; width: 100%; position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0; } .videowrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } … Read more

How to embed a SWF file in an HTML page?

The best approach to embed a SWF into an HTML page is to use SWFObject. It is a simple open-source JavaScript library that is easy-to-use and standards-friendly method to embed Flash content. It also offers Flash player version detection. If the user does not have the version of Flash required or has JavaScript disabled, they … Read more

How do I force files to open in the browser instead of downloading (PDF)?

To indicate to the browser that the file should be viewed in the browser, the HTTP response should include these headers: Content-Type: application/pdf Content-Disposition: inline; filename=”filename.pdf” To have the file downloaded rather than viewed: Content-Type: application/pdf Content-Disposition: attachment; filename=”filename.pdf” The quotes around the filename are required if the filename contains special characters such as filename[1].pdf … Read more

How to embed a video into GitHub README.md?

Add a url to video file in your ReadMe. Github now supports videos, see more detailed answer here: https://stackoverflow.com/a/4279746/1092815 You can see a live example here (See at the end of the readme): https://github.com/alelievr/Mixture/blob/0.4.0/README.md Github Pages I strongly recommend placing the video in a project website created with GitHub Pages instead of the readme, like … Read more

How can I embed a YouTube video on GitHub wiki pages?

It’s not possible to embed videos directly, but you can put an image which links to a YouTube video: [![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE) For more information about Markdown look at this Markdown cheatsheet on GitHub. For more information about Youtube image links look this question.

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