Skip to content

Instantly share code, notes, and snippets.

View jefffis's full-sized avatar
🌵
Birgleflickle

Jeff Doan jefffis

🌵
Birgleflickle
View GitHub Profile
@jefffis
jefffis / gist:6720007
Last active December 24, 2015 00:58
Using @font-face in email and how to apply fallbacks for Outlook.
Use @font-face like normal:
@font-face {
// code here
}
There is an Outlook 2007 & up hack I've used at times that seems to fix this as well:
<!--[if gte mso 9]>
<style>
@jefffis
jefffis / gist:6297098
Created August 21, 2013 17:00
HTML with media queries for mobile devices
<!DOCTYPE html>
<html>
<head>
<title>180 Days: A language learning challenge | Rosetta Stone</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style type="text/css">
* { -webkit-text-size-adjust:none; }
@jefffis
jefffis / gist:5599133
Created May 17, 2013 13:49
restart apache command
sudo service httpd restart
@jefffis
jefffis / gist:5221491
Last active December 15, 2015 07:09
A thought on not using <select> elements for dropdown lists outside of forms. It's more meaningful to the browser, works without JS, and MUCH easier to style for us designy types.
<html>
<head>
<style>
/*
// CSS
these styles can be anything, but this was from a recent project.
basically, i'm setting the height of the <ul> and each <li> and only on :hover showing all of them. when clicking a list item, that is then showed as .selected when a user :hoversout of the <ul>