Archive for the ‘CSS Tutorials’ Category

Jul 3 Accessibly Use Image Headers Posted at 7:14 am | No Comments »

A while ago, I heard rumors that the next incarnation of HTML would include support for easily replacing HTML elements (such as headers) with images by simply adding a “src” attribute to the HTML tag. For instance, you might be able to do something like:

<h1 src="myimage.png">This is my alt text</h1>

However, it seems that the advent of this type of thing, if it ever happens, is still quite a ways off. Therefore, if you’re looking for an easy way to replace a plain text header with a nice image, for instance, a banner, you need to find another way of doing so.

This article will briefly explain how to do so using purely CSS. (more…)

Apr 22 Eight Links - April 22 Posted at 7:47 pm | No Comments »

Here are today’s Eight Links — links for web developers:

  1. JsPDF - create PDF files completely using JavaScript
  2. The Database Rant - begins with “It’s time for SQL to die.”
  3. iPhone app sales - a developer explains the income his app has generated and how changing pricing didn’t change sales
  4. Why writing software is like writing
  5. 18 Seriously Helpful Cheat Sheets for Easier Coding
  6. Google Analytics API Launched
  7. Finding and Fixing Memory Leaks in Python
  8. A Design for a Distributed Transaction Layer for Google App Engine

Apr 8 CSS3 Will Include Rounded Corners Posted at 4:25 pm | 1 Comment »

With Web 2.0, rounded corners have become wildly popular. Unfortunately, as of right now, you need to use transparent images, some fancy CSS hacks and some extraneous HTML to make them work properly.

However, Mozilla (Firefox) and Webkit (Safari, Konqueror) browsers have implemented a property called border-radius, which will apparently be included in the CSS3 spec, allowing you to easily create rounded corners on any bordered HTML element.

At this time, you have to use browser-specific properties for Mozilla and Webkit browsers, as the border-radius property is not yet fully implemented. You can find more information about the -moz-border-radius and -webkit-border-radius implementations on The Art of Web. More info about the proposed CSS3 spec on border-radius can be found on the W3 site.

Feb 19 Cross-Browser Semi-Transparent Backgrounds Posted at 5:07 am | No Comments »

This is a simple tutorial to explain how to implement semi-transparent backgrounds for your HTML elements in all browsers. By now, most people are probably aware of the fact that you can use 24-bit PNG images to create semi-transparent backgrounds in newer browsers. However, because a large percentage of Internet users have still not adopted Internet Explorer 7; which means that they’re still using IE6, which doesn’t support 24-bit PNG images, we have to find a way to mimic that behavior. It should be noted that the fix described in this tutorial is only applicable to solid color backgrounds; it cannot be applied to backgrounds that include some sort of image. (more…)

Dec 20 Creating Print Style Sheets Posted at 5:49 pm | No Comments »

As CSS becomes more and more popular and Web designers are using it more and more to develop the look of their Web sites, browsers are causing more and more problems when trying to print Web pages. CSS styles do not always translate nicely when printed. Some browsers actually freeze or crash when using specific CSS style definitions.

(more…)

Sep 14 Identifying External Links - Like Wikipedia Posted at 8:03 pm | 4 Comments »

Wikipedia - External Link Identification

I found myself wondering a while back how Wikipedia identifies external links the way they do. I’ve seen the same concept on many other sites, but I had never really looked into how it was done. I always just assumed that an image was dynamically added to any code that included external links.

It turns out that I was wrong, and I was kind of happy to find that out. The answer I found makes much more sense, and is much more simple to implement.

(more…)

Jul 23 Common CSS Issue Resolution Posted at 8:13 pm | No Comments »

NetTuts has a good look into 5 common css issues and how to resolve them easily and quickly. The five css issues are:

  • Why are my styles not effective?
  • The difference between relative and absolute positioning
  • Internet Explorer 6 double margin issue
  • Specific selector issues
  • Testing your site in multiple browsers

As always, if you run into trouble, post your questions in our CSS help forum.

Jul 12 The Beginner’s Guide to CSS Video Posted at 5:24 am | 1 Comment »

Videojug has put together a simple video about what CSS is and how to use it. It’s just the really simple basics but still worth a view. And if you have questions, stop by our CSS help forum.

May 9 A Simple Introduction to CSS Posted at 4:23 pm | 4 Comments »

First of all, to dispel any misinformation that is apparently still going around on the Internet (and, I, too, once believed this when I was first introduced to CSS), CSS is not capable of inserting content into your pages. CSS cannot be used to create headers and/or footers to be used on every page of your site.

For those of you looking for ways to use the same menu on every page of your site, and keep that menu in a single location so that it’s easy to update, CSS won’t do that for you. That’s what server side includes are for, actually. Server side includes can be used with pure HTML (provided that includes are enabled on your server), with PHP, Perl, ASP or basically any other server-side language.

In fact, CSS does almost the opposite. CSS is intended to separate the content from the design within a Web site. CSS is strictly intended to facilitate the “look” of the pages on your Web site. No content is interpreted from CSS.

Now, for the quick lesson on how CSS works.

First of all, we should examine the name. CSS is an abbreviation of the phrase “cascading style sheets”. Let’s pick that apart for a moment.

Cascading
items that overlap, with each new item taking precedence over the previous
Style
refers to the particular look or appearance of a specific item
Sheet
figuratively, this is intended to refer to a collection of items gathered together in a single location, like a sheet of music

(more…)

Apr 4 The Definitive Guide To Stylesheet Planning Posted at 4:57 am | No Comments »

The more we rely upon CSS, the larger and more complex stylesheet files become. Planning and organising your stylesheet is essential to creating a lean, manageable website. There are many ways of organising CSS code but the following are best practice…

Comment your stylesheet

Commenting your stylesheet makes it much easier to find the information or the commands you’re looking for.

(more…)