Sep 14 2009

Applying Background Images Using CSS

A background image can be applied to any element using the following CSS declaration:

background-image: url(image name);

Shorthand background declarations are written as:

background: color image repeat attachment position;

For example, the following code:

p {
  background-color: #f00;
  background-image: url(background.gif);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

would be written in shorthand as:

p {
  background: #f00 url(background.gif) no-repeat fixed center;
}

The background-position can accept 2 values. For example:

p {
  background: #f00 url(background.gif) no-repeat fixed center left;
}

The first value, called the x-coordinate or x-position, is the horizontal-position or distance from the left. The optional second value, called the y-coordinate or y-position, is the vertical-position or distance from the top.

The top left corner, 0% 0%, is the default location. The right bottom corner is 100% 100%. If only one value is specified, it is assumed to be for the x-coordinate; the y-coordinate defaults to center or 50%.

You can also use units of measurement, such as pixels, points, em units, etc., for the background-position. Negative values are allowed too. Combinations of keyword, length, and percentages are allowed, (e.g., 50% 2em or 100px bottom or left 10%). For logical reasons, when using combinations of keyword and non-keyword values, left, right, and center should only be used for the x-coordinate, and top, bottom, and center should only be used for the y-coordinate.

Always remember to specify a background color when using an image as a background, especially with light-colored text, because the text should be readable if the image fails to load.

Examples:

x-pos x-pos y-pos x-pos y-pos x% y% Example
n/a top left left top 0% 0%
top top center center top 50% 0%
n/a top right right top 100% 0%
left center left left center 0% 50%
n/a center center center 50% 50%
right center right right center 100% 50%
n/a bottom left left bottom 0% 100%
bottom bottom center center bottom 50% 100%
n/a bottom right right bottom 100% 100%

Aug 29 2009

Collection of Child Themes for Thematic

The following sites offer free child themes for the Thematic WordPress theme framework:

Did I miss something? Notice a broken link? Let us know about it…


Aug 10 2009

Social Network Services

The following was presented at SMCC on August 10, 2009:

Continue reading


May 14 2009

Google Outage Brings the Internet to a Crawl

From MVied Designs

As you may or may not have noticed, the Internet ran into a few complications today. Apparently the problem has been linked to an AT&T routing problem somewhere in the Midwest. Some people didn’t experience any problems, while others were unable to access many large websites, most notably, Google. Several other large website such as Wal-Mart, Apple, and Microsoft were unreachable by people in certain locations

Read full story at http://mvied.com/blog/google-outage-brings-internet-crawl/.


Mar 11 2009

Weird Twitter Gadgets!

I just ran across a post on Digg in the technology group about gadgets and devices people have built that interface in some way with Twitter. Quoting from the article:

Its (Twitter’s) charm is that its usefulness is entirely open to interpretation – while many just don’t get it (including Google’s CEO), some use it purely for self-promotion, others to connect with their peers, others to tap breaking news long before mainstream media covers it, and then there’s the subset of users that like to build or hack devices to use its API. Read on to meet six devices (of varying usefulness) that use Twitter to communicate with their human overlords.

The following devices are listed in the story:

  • Tweet-a-Watt:  The Kill-a-Watt mod that broadcasts your power consumption.
  • Botanicalls:  Plant water sensor that tells you when your plant needs a drink.
  • Laundryroom:  A laundry room at Olin College that tells you how many washers/dryers are free.
  • TwiVo:  A TiVo that tells you when it’s finished recording.
  • A washing machine that Tweets you when it’s finished.
  • A robot that makes and delivers popcorn, that takes orders via Twitter.

Read the full story here…

Let us know what amazing devices you’ve interfaced with Twitter or any other Web service.


Feb 28 2009

Browser Testing – Past, Present & Future

The Past…

The majority of the development I did in the past was on a PC running Microsoft Windows, mainly XP Pro. As a default set of development tools, I would have the newest version of the different available browsers including Firefox, Opera, Safari and Chrome. This was a great setup for testing in the latest and greatest browser versions but did nothing for testing in those older versions that the majority of the Web population were using. I explored many different avenues to fulfill my testing obligations and came up with a variety of solutions. None were optimal but they served their purpose. I initially had an older PC that I used only for testing purposes that had older versions of IE, Opera, Netscape and Firefox. This worked to a point but was a real pain switching amongst multiple machines just to do testing. I started using standalone versions of IE from evolt.org but this did nothing for testing in other browsers. There were a few online services that provided you with a screenshot of your page running in a variety of browsers and versions. This was good, but all it showed you was a picture – you can’t easily develop from that. There had to be a better way but I had not found it. But then…

Continue reading


Feb 27 2009

Don’t be a Whore! 10 Tips to help designers avoid being taken advantage of

From GoMediaZine

If you’re freelancing or just starting your own design company, you may be in jeopardy of being a whore. That’s right. Some seemingly sweet client may come along, wine and dine you, bend you over the back of the couch, have their way with you – then dump you like last week’s trash without paying you. You may be getting pimped right now and don’t even realize it. If you haven’t been stiffed by a client yet – just wait five minutes.

Read full story at http://www.gomediazine.com/design-tip/whore/.


Feb 25 2009

The Ultimate Website Launch Checklist

Box UK has posted a handy checklist to assist web developers and project managers when launching a website. The collaborative effort appears as if it is still a work in progress, but documents such as this usually are.


Feb 24 2009

Pros & Cons of Social Networks

The following was presented at MGCCC on February 19, 2009:

Continue reading


Feb 18 2009

MySQL based transactions using PHP 5.x

I’ve been using database transactions heavily in an application I’m working on and thought it might be a good topic to write about. I started searching for tutorials on the subject and found very few that are of good quality. Hopefully this will enlighten you and provide a better understanding of the subject.

Continue reading