Select Page

CSS Link Icon for External Website

Create a custom icon for your external website links.

a[href^="http://"] {
  background: url(/images/external.png) center right no-repeat;
  padding-right: 13px; }

a[target="_blank"] { 
  background: url(/images/external.png) center right no-repeat;
  padding-right: 13px; }

Box-sizing: Border-box

Ugh. If I say the width is 200px, gosh darn it, it’s gonna be a 200px wide box even if I have 20px of padding. So as you know, this is NOT how the box model has worked for the past ten years. Wikipedia has a great history of this box model.

Anyway, I have a recommendation for your CSS going forward:

/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: border-box; 
  box-sizing: border-box; }

This gives you the box model you want. Applies it to all elements.

Full Article: http://www.paulirish.com/2012/box-sizing-border-box-ftw/
Reddit Discussion: Is it a bad practice to apply a global “box-sizing: border-box;”?

Responsive Video Embeds

FitVids [Website ]

A lightweight, easy-to-use jQuery plugin for fluid width video embeds.

Use: include jquery, include jquery.fitvids.js
Add: fitvid class to video container divs

$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$(".fitvid").fitVids();
});

Dark Code-View in Dreamweaver

I use Dreamweaver a lot.  I love the code-view and visual layout integration.  It allows for quick development and the visual tools keep the code pretty clean without overwriting any tweaks you may have added. But the default white background on code-view is tough on the eyes.

Here is a great tutorial I found on how to reset to a dark code theme:

http://www.hongkiat.com/blog/dark-theme-dreamweaver/

Now start coding in style!

Artwork: From Pencil/Ink to Digital

Tools: Scanner, Adobe Illustrator

  1. Start your artwork on a large format to start with.  If it is an existing drawing that is small you can enlarge the image with a photocopy machine.
  2. For the final line-art you want to take tracing paper and use pen or sharpies.   This will produce nice crisp lines.  If there are minor mistakes we can fix this in Illustrator provided there isn’t too much adjusting that needs to be done.
  3. Scan your nice clean ink work at 300 dpi.
  4. Open a new document in Illustrator. Go to File > Place and select your scanned document. Resize the image to fit inside the document edges.
  5. Go to “Object” in the top menu and select “Image Trace.”  This will turn your artwork into a vector format.
  6. Ungroup the modified artwork.  Delete the background.  Group sections of the art together (pants, shirt, etc.) and apply basic colors.
  7. You now have scalable vector art of your drawing.  You can now either make your stickers or pull it into other art programs for further adjustments.

Poster Tips: PowerPoint

Here are some general guidelines I follow when working posters.  You can skip to relevant sections and use my suggestions as you see fit.

  1. Set the document size:
    • Create a new document.  Go to the tab “Design” and then “Page Setup” button.  Set your final width and height.  This is the first thing you do with a new document because if you change this later it will do bad things to your images and text.
  2. Adding screen shots:
    • When your window is ready you press “Print Screen” then paste it on your slide.
    • You will want to crop your image to just the portion of the screen you want to use.  Right click your image and “Format Picture” and select the “Crop” section.  Under “Crop Position” you want to first set the “Left” and “Top” sections to the top left edge of your screen.  Then set the “Width” and “Height”.  You should now have a nicely cropped screen for your poster.  Note: You want to set the Width and Height last because these will shift if you change your Left and Top afterward.
    • I will usually put a solid border with a drop shadow to help make the screen pop.
  3. Text boxes:
    • I prefer to put my text inside white rounded boxes, no border, with a drop shadow. It is a clean look that is easy to read. I usually make my headings bolded black text and my paragraph text grey.  This helps your viewer pick out the different sections of the poster quickly and will look nicer.
  4. Spacing:
    • Try to keep the spacing the same around all elements. So your paragraph text will have 1cm before the edge of the text box.  All the images and text boxes should have 1cm between each other. That 1cm can be any size the important thing to remember is that you keep it uniform for all elements.  Try not to have too much empty space on your poster.
  5. Images:
    • If you are familiar with Photoshop or Illustrator, I recommend exporting your images as a PNG with a transparent background.  This will allow you to drop all your images into PowerPoint or other programs and allow the background to show through the image.  This is particularly helpful if you are working with a group and they may need your graphics for other uses in the future.