Create a Minimum Height with CSS

As developers, we all battle the cross browser struggle.  What works in Internet Explorer may not work in Firefox. Sometimes what works in IE 7 doesn’t work in IE 6.  Little nuances like that appear all of the time in browser testing.

One such issue is setting a min-height with CSS.  Firefox supports this CSS property but Internet Explorer does not.  To overcome the issue in IE you need to modify your min-height property in the CSS syntax.

CSSselector {
min-height:100px;
height:auto !important;
height:100px;
}

Utilizing this CSS technique to establish a min-height does not require you to include empty div elements into your HTML; therefore, keeping your HTML clean and your CSS for presentation.

How To Embed A Vimeo Video in a WordPress.com Site?

WordPress.com Hosted SiteI was recently asked by a friend to assist with some troubles on their wordpress.com site regarding embedding video. Now when it comes to embedding video from YouTube, we all know that you have to paste the embed code into “HTML” tab in your WordPress editor. Otherwise WordPress tries to “fix” the copy and will break the embed code. For the number 2 video site on the web, Vimeo, you would like to think the embedding process would be similar. Well unfortunately that thought is wrong!

So let get to it. How do you embed a Vimeo video into a blog post on a wordpress.com hosted blog?

For a wordpress.com hosted blog, the answer is a shortcode.

[vimeo 123456]

Using the above shortcode (replacing 123456 with the actual id of the video) you can embed a Vimeo video into the blog post. The shortcode is not view specific. So you can enter it from the “Visual” or “HTML” tab. A simple solution to a mega problem.

Note: the shortcode is not core functionality in a self hosted WordPress. A plugin and theme alteration would be required for a self hosted install.

A thanks to @DanaMNelson for sparking this conversation point.