Interactive by Nature

Jul 17, 2014

Media Queries For HTML Elements

Problem

Recently, I needed to reuse some markup for a component. The markup to be reused was to be put inside a modular, HTML component in a side panel of our application. Alternatively, it was the main content on another page. The problem is that the component needed to respond to the width of the side panel, which only took up 2 columns of an 8 column grid. So, basically I needed that media query to display the “mobile view” inside that 2 column panel. The CSS styles for the mobile view cannot be rendered unless the media queries conditions were met. I used the same markup for the side panel, but without the media queries firing off, the layout was not stacking the way I needed it to (figure 1). My first thought was to have 2 separate HTML snippets, but that’s not practicing modular design, so I started looking for a solution.

Element Queries

figure 1

Read the rest of this entry »

No Comments »

Jul 31, 2013

Creating Custom Icon Fonts

Benefits of Icon Fonts

I’ve always been obsessed with icons and hieroglyphs, so as a web developer, I got all excited with the sudden popularity of icon fonts. Using icon fonts, as a replacement for images, has many benefits. The most important, in my opinion, is performance. Because icon fonts are vector and are contained in a single file, they perform better then, say, using a sprite as an image container. Although, both a sprite and a font file make a single HTTP request, the icon font file is usually a lot smaller.

Another important benefit of using icon fonts is optimization for high-resolution screens. The media query is a wonderful thing, but if it can be avoided for swapping images for high-resolution screens, it’s a quick win – one file for all screens and device types! Because icon fonts are vector, they will scale without loss of quality and again, when you compare file size and the single HTTP request, it’s a no-brainer.

With icon fonts, it’s also super easy to change color and size using CSS. As browser support for CSS3 becomes more advanced, you will be able to do all kinds of other cool stuff, like apply gradients, drop shadows and background textures.

Getting Started

There are a few icon font generators out there, but I’m using Icomoon because you can import your own vectors, import other icon font packs, only include the icons you need, use the Private Use Area feature, etc. The best part about Icomoon is that it’s 100% free and open!

The first thing you’ll want to do is go to http://icomoon.io/app/. When you first enter the app, you will see icons galore! If the icons that are needed are on the screen, you can simply click to highlight the icons you want. You must make sure that the Select tool is selected, but I’m pretty sure it is by default. There are two other tools available. The second tool is the Delete feature. When selected, it removes the icon from the icon library that displays on your screen. The third tool, is the Edit tool. When selected, simply click on an icon to edit. You will see a pop-up window (figure 1) with the icon you selected and a few features including Rotate, Flip, Scale and Move. You can also download that icon as an SVG. This is helpful if you want to take it into Illustrator and make changes to the icon that wouldn’t be able to made inside of Icomoon.

Read the rest of this entry »

No Comments »

Jun 24, 2013

Dining In At Del Taco

Del Taco

Yesterday, my girlfriend and I decided to venture out into the thunderstorms to find something to eat. We ended up at Del Taco since my girlfriend wanted mexican and had never been there. I had been there before, but it’s been a long time.

As soon as we walk in, we notice that there is absolutely no one in there besides the staff. As we approach the ordering counter, this very hyper teenage cashier points at me and says “Dude, I love your shirt!” I had to look down because I forgot what shirt I was wearing. At first I thought I was wearing my Firefox logo t-shit because all the young kids comment on it, but it was instead my Bob Marley t-shirt. I reply, “Thanks dude!”. We proceed to order 6 $1 classic tacos, at which point the cashier replies “Or, for the same price, you can get 12 mini tacos.” The he points at me and says “I’m just thinking like a stoner dude! That’s what I would do”. So I reply, “we’ll take the 6 $1 classic tacos please.” I couldn’t believe he did this right in front of his manager and the rest of the crew, who were just standing there waiting for the order to give them something to do.

Read the rest of this entry »

No Comments »

Jun 17, 2013

Artifact Conference 2013

Last month I was fortunate enough to attended the inaugural Artifact Conference in Austin, Texas. Artifact is “a two-day, single-track conference for DESIGNERS adapting to the challenge of designing for a MULTI-DEVICE world”. That description was exactly what I was looking for while preparing myself to dive into the world of Responsive Web Design.

It all started with Jennifer Robbins having an idea for a pow-wow to discuss a new workflow for a multi-device web, since our old processes and workflows are no longer cutting it. She tweeted about it and Christopher Schmitt from Environment for Humans obliged within two minutes. Thank you both!

Read the rest of this entry »

No Comments »

May 05, 2013

Why I Deleted My Facebook Account

For me, Facebook has run it’s course, so I deleted my account. Sure, it’s a great place to connect with your family and friends and stalk that old crush from high school, but does it really benefit you and your family? One of the reasons that I’ve waited this long is because my mother joined Facebook a while back and I love my mommy! She loves seeing pictures and videos of her grand kids, but is that enough for me to continue to steal time from my children and bring stress and anxiety upon myself? Is Facebook the only channel in which to share your life with family and friends? Does Facebook have a monopoly on social interaction? I don’t think so. I’m on Twitter, Instagram, Foursquare, Flickr, Youtube, etc. You can email me at elizeo@interactivebynature dot net and I have my own blog which you’re reading right now.

Facebook Deleted

Read the rest of this entry »

2 Comments »

Apr 11, 2013

Photoshop CS6 Shortcut Cheatsheet


Photoshop CS6 Shortcut CheatSheet - Tags

Photoshop CS6 Cheat Sheet By ZeroLag Hosting – Experts in Magento Hosting

No Comments »

Apr 05, 2013

Considering Browser Reflow

Back in February I attended the HTML5 Denver Users Group presentation – Making Your UI Scream (Not Your Users) by Wesley Hales. From the title of the presentation you can probably guess that his talk was about website performance. Most of what he had to say about performance, I’ve heard before, but one of the things that Wesley brought up was reflow. I’ve built plenty of websites and performance is always at the top of my list, but I never looked too much into reflow. This was my biggest takeaway from Wesley. Now that performance for mobile websites is a huge consideration, I’ve been interested in other micro-optimizations. Maybe another reason that I haven’t taken reflow into consideration before is because I follow one of Wesley’s rules: Don’t let micro-optimizations weigh you down. Finish the project first.

More On Reflow

Reflow is the process in which the browser calculates the positions and geometries of all the elements in the DOM tree for visual presentation. Reflow is a user-blocking browser operation that can effect the UX, and in this day-and-age of immediate gratification, performance is a very important UX consideration. One of the most powerful things about jQuery is it’s ability to easily manipulate the DOM with methods like .show(), .hide() and .attr(), but in order to minimize reflow you should avoid touching the DOM as much as possible.

Read the rest of this entry »

No Comments »

Apr 04, 2013

Whatever!

We want the sex and not the kids. We want the check and not the job. Most of all we want the blessing but don’t answer to God. Got a closet full of clothes and empty bank accounts. If you need a handout, we got nothing; we bounce!

So, we do whatever, eat whatever, smoke whatever, f*** whoever, wear whatever, shake whatever, sell whatever, it’s now or never.

If Grandma and Grandpa saw how we behaved, they would probably spin around like yo-yo’s in their grave.

~Brother Ali

Listen to Whatever by Brother Ali.

No Comments »

Mar 31, 2013

Mobile App Training By Apigee

Last Friday I attended a free mobile app training session with Apigee. We used jQuery Mobile combined with PhoneGap to produce a rich native mobile application. The training session was led up by Tim Anglade, Head of Developer Programs & Evangelism at Apigee. Tim has an impressive resume and is completely comfortable speaking in front of a crowd.

jQuery Mobile

The first half of the morning was spent introducing jQuery Mobile followed up by a crash-course in using the mobile web UI framework. Tim also introduced a drag-and-drop WYSIWYG called Codiqa to keep things moving for those unfamiliar with jQuery Mobile. Codiqa is great because you can use it as a prototyping tool and share designs with clients and/or collaborators. Having used jQuery Mobile since it’s first alpha release, I chose to open up TextMate and go to town.

Read the rest of this entry »

No Comments »

Feb 14, 2013

On Dating With Children

As a single father, I’m starting to realize how difficult it is to date with children. One thing that makes this even more challenging, is that I prefer to date women without children. Call me double-standard, but I know what I want.

I haven’t done a whole lot of dating since the divorce and have only brought 2 women around my boys in an attempt to get serious and take it to the next level. Both of them broke it off with me because of my youngest sons all-of-a-suden manipulative behavior. He would do things like ask my girlfriend to help him hang up pictures in his room, but when she would look to see what the pictures were, they were of me, the boys and my ex-wife all happy together. Another time he randomly walked up to her and handed her a VHS tape and said “Look! It’s my mom and dads wedding video”. His signature move was to go to his room and cry as loud as he could while I had her over.

How do you react when it’s so obvious that he doesn’t want you around? I don’t blame either one of them for bailing on me. Both of them have never dated a man with children before, so I’m sure this left a bad taste in their mouth about dating men with “baggage”. My oldest son seems to be okay with whatever I do. When asked how he feels about me dating, he said “I just want you to be happy dad”.

Read the rest of this entry »

No Comments »

« Older Entries