HTML & CSS

If you want a website and you need it tonight…Square Squared

“If you want a website and you need it tonight…Square Squared.”  Those are the famous first lines of our company theme song.  Not all companies have a theme song, but we are fun, innovative and creative team, and we thought, “Hey, why not make a theme song and music video to promote our brand?”

So, we wrote a song, performed it and recorded it along with produced a music video for you tube.  It’s a fun and different way to help get the message out.

Below are the complete set of lyrics, and a link for the video. Enjoy!  Give us a call if you need a creative way to get your message out there, either through a website, video, or if you want to brainstorm for something else that will fit your company and brand best.

<iframe width=”420″ height=”315″ src=”https://www.youtube.com/embed/sd3CTdA1cgg” frameborder=”0″ allowfullscreen></iframe>

If you want a website and you need it tonight…Square Squared.
If your site that was done, was by your neighbor’s son…call Square Squared.
Get it right. Get it right. Get it right…Square Squared

If your logo and brand were drawn with a crayon… Square Squared
If your graphics just suck or your marketing’s muck…Square Squared.
Get it right. Get it right. Get it right…Square Squared

Fair’s fair, call Square Squared
for digital graphics and website care.
Call us 24/7 and we might be there
burnin’ the midnight oil in our underwear
and say, “Have no fear, we’ll take care of that snare,
and get you up and running before daylight’s here.”

If your logo and brochures are just a mess,
Lynn will come to your office in a Pucci dress
and say, “We’ll take care of these items, but I must confess
there’s a little bit of money that you must invest –
and in no time flat you’ll be a lot less stressed
makin’ tons of loot with a look that’s fresh.”

But that’s not all that we can help you do
Social media, videos and outdoor too,
wrap your truck in art
make your store front smart
get your business card lookin’ oh so sharp
We’re never mean, we’re green, check out our new routine
and you’ll always love working’ with the Square Squared Team.

If you need an ad to be proud and stand out from the crowd…Square Squared
If your look needs repair, some umph and some flair…Square Squared
Get it right. Get it right. Get it right…Square Squared

Read more
QR-Codes

QR Code it

What can a QR Code do?

A lot of people don’t know this, but QR Codes are actually old technology.  The QR code system was invented in 1994 by Toyota‘s subsidiary, Denso Wave. Its purpose was to track vehicles during manufacture; it was designed to allow high-speed component scanning. With the advent of the smart phone and the capability of such devices to easily read and process these barcodes anywhere, at any time, their potential and use began to blossom.

A QR code is literally a bridge to connect the “real world”  with the “digital world.”  You can’t put “Click here” on a t-shirt or printed brochure, but a QR code gives you virtually the same benefit.  “Scan here” and visit the online destination of my choosing. Basically, anywhere a website button could take you, a QR code can bring you to the same place.

We often generate QR Codes for our clients to place on cards, ads, stickers, or T-Shirts. It can store text, a URL, contact information, phone numbers, SMS whatever. I have used them to link directly to websites, Facebook pages, and even PayPal payment screens.

The possibilities are endless.

The best place I have found to go to generate your code, simple, easy, and free is: https://www.the-qrcode-generator.com/

Good luck, and happy scanning!

Read more

Load content to the clipboard

I have been looking for a solution to load a block of text to a client’s clipboard at the click of a button; basically I needed a way to “copy” text for pasting without having to actually select and copy it.

Most of the solutions that are available are NOT cross browser compatible. I have looked at  different Javascript, jQuery, and Flash based systems, but all of them were older and were lacking cross-browser compatibility.

Two of solutions that didn’t work:

The solution that does work:

Let me know if you need help getting something like this to work on your website.

Read more

Check all Checkboxes with jQuery

I was searching for a solution to this problem and came upon this post. Most Javascript functions that do this rely on the fact that the input checkboxes all have the same ‘name’ property.  This jQuery solution merely requires them to all be in the same FIELDSET.  Clean, simple and effective.  Brilliant solution.  Bravo Brian Cray!

SUMMARY

This code checks/unchecks all checkboxes within the same fieldset. A simple end elegant solution to a problem that would be much more involved in Javascript alone.

HTML

<fieldset>
	// these will be affected by check all
	<div><input type="checkbox" class="checkall"> Check all</div>
	<div><input type="checkbox"> Checkbox</div>
	<div><input type="checkbox"> Checkbox</div>
	<div><input type="checkbox"> Checkbox</div>
</fieldset>
<fieldset>
	// these won't be affected by check all; different fieldset
	<div><input type="checkbox"> Checkbox</div>
	<div><input type="checkbox"> Checkbox</div>
	<div><input type="checkbox"> Checkbox</div>
</fieldset>

The jQuery Piece

$(function () { // this line makes sure this code runs on page load
	$('.checkall').click(function () {
		$(this).parents('fieldset:eq(0)').find(':checkbox').attr('checked', this.checked);
	});
});

You can see it in action here in Brian's site:

http://briancray.com/tests/checkboxes/index.html

Read more

My email doesn’t display right? Inconceivable!

I have spent many, many hours over the past several days trying to get an HTML email to display correctly when sent from Outlook 2007. This does not seem like that hard of a task. It also does not seem unreasonable for me to ask that email editors follow the same rendering rules as an internet browser.

Take a look at the disaster that awaits unsuspecting email designers:

Outlook 2007 disaster

This is how an email using W3C compliant markup may display in Outlook 2007 or 2010

Normal Email Display

This is how the email appears in 95% of all other browsers and email clients, and how it appears in Outlook 2007 AFTER the workarounds I implemented to compensate for Outlook's careless lack of support for internet standards.



Well, Microsoft has decided that Outlook 2007 and Outlook 2010 will use Word’s HTML rendering engine to read HTML emails instead of the Internet Explorer engine that it has relied on in past software versions.

Some key things you should note:

  • There is no support for Background images in HTML or CSS
  • Forms and Flash are not supported
  • You cannot use CSS float or positioning

You can read these articles from Microsoft outlining the HTML and CSS support offered in their “new and improved” Outlook.

There is also a great article on Sitepoint summarizing a lot of these issues: Microsoft Breaks HTML Email Rendering in Outlook

One thing that Sitepoint does not cover is the fact that you have to designate your image height and width on the img tag itself, either in plain html or both html and css. If you do not add this to your images outlook 2007 will generate them for you at a less than optimal setting. In addition NEVER put “px” after your widths and heights or any other HTML setting (CSS style settings are okay), as like <img width=”100″ height=”100″ /> instead of <img width=”100px” height=”100px” />.  Using the latter format will result in unexpected sizes and totally threw me for a loop since I was sizing transparent spacer-holder images with it and couldn’t see what was going astray!

If you are one of those unlucky PC users, Microsoft also offers software utility to test for valid HTML and CSS for Outlook 2007.   It is a plug in that works with Microsoft Office SharePoint Designer 2007, Microsoft Expression Web Designer 2007, and Microsoft Visual Studio 2005.  There is also a second plug in that works with Dreamweaver MX 2004 or Dreamweaver 8. Of course it is not offered for the MAC, so if you are struggling to design an HTML email from the apple you are pretty much working blind and S.O.L.

HTML issues directly relate to 3 out of the 67 Reasons that Outlook Sucks as written by wanderingstan. In case things aren’t clear by now, you can read Why Outlook Sucks by Marcy Sutton.  Thanks Marcy for this great link with a Guide to CSS support in email clients!

Microsoft is at least consistent with their products offering non compliance with the World Wide Web Consortium’s XHTML and CSS standards. Microsoft Word is known to generate excessive, irrelevant and non standard markup. Even Microsoft FrontPage often generates non-standard HTML by default.

What is the point in the World Wide Web Consortium establishing and promoting standards if Microsoft chooses to blatantly ignore them?!

Read more