Cascading order of CSS

Filed under: CSS Stylesheets

In CSS, it’s possible to have more than one style specified for a HTML element. In simple terms, all styles, no matter how it’s specified will “cascade” down into one virtual stylesheet. This means you can define styles in an external style sheet, an internal stylesheet or inside a HTML element and all these styles will cascade down into one “master” stylesheet.

The order, from lowest to highest priority, is as follows: (Read more…)

Which directories to submit?

Directory submission is a basic web promotion technique that’s easy and quick. Submitting your site to online directories can help create that baseline amount of traffic to your site.

The internet has seen an growing number of directories, both free and paid. With hundreds and thousands of directories, which ones should you submit to? Which ones should you avoid? This article hopes to clear up these questions and provide more information on each directory. (Read more…)

Basic web site promotion

So you have a newly developed web site, ready to receive visitors, what do you do next to get those visitors to your site?

Web site promotion is an ongoing process. It mostly involves getting links to your web site through various means.

Here is a quick list of basic web site promotion any and every web site owner. In addition, remember to optimize your pages for easier and better indexing by search engines. (Read more…)

Check if external image exists

Filed under: PHP

Quick and easy PHP script to determine if image exists. The image you are checking for can be hosted on your site or externally.

This script is useful to display an alternate image if the original one does not exist. (Read more…)

CSS Hacks for Internet Explorer

Good web design is more than just a good looking web site, it’s also making sure that the web site design is displayed as intended no matter which browser a visitor to the web site uses.

Internet Explorer (IE) has always had issues with displaying CSS styles correctly. It became necessary for web designers to develop hacks to ensure that their designs looked as intended in Internet Explorer as well as other browsers. (Read more…)

Stop Browser Caching Using Meta Tags

Filed under: HTML / XHTML

Browsers typically cache the page it has visited to save on bandwidth and load time. This means that when you hit the back button, the browser will use its locally stored page instead of requesting the page again from the server.

You may not want browsers to cache pages in several instances such as for online forms where credit card or personal details are viewable. Another instance is when you’re trying to password protect web pages when using scripts such as Simple Authorization Script.

To stop browsers from storing a version of your web page in its cache, use the meta tag, (Read more…)

Javascript Pop Up Windows

Filed under: HTML / XHTML, Misc. Tips

Uses of Pop Ups

Pop up windows are used for a variety of reasons. As much as people hate pop ups, they are still a form of advertising that works. In particular, they are used for Pay Per Click (PPC) advertising as well as banner exchange advertising.

Pop ups are also useful for open up a link to an external web site without leaving your site completely. Once the user has finished with the external site, they can close the pop up window and go back to your site.

You can also use pop up windows to request visitors to complete surveys, or for newsletter signups. They are also a useful way to display your help or frequently asked questions page.

Methods of Creating Pop Ups

There are several ways to achieve a pop up window. The simplest method is to use (Read more…)

Check your link exchanges!

Filed under: Link exchanges

Link exchanges are a great way to boost the number of visitors to your web site. They also play a role in increasing link popularity and the chances of your web site being found in search engines.

Establishing a link exchange isn’t difficult, however, maintaining them takes more time and dedication. You may find that some webmasters suddenly, and often without warning or notice, remove your link from their site. This practice by some webmasters make checking reciprocal links an important task for any one involved in link exchanges. (Read more…)

Regular expressions 101

Filed under: htaccess, PHP, Misc. Tips

What are regular expressions?

A regular expression is a special string used to describe or match a search pattern or set of strings. Regular expressions use certain syntax rules as outlined in the section below, “Basic regular expressions syntax”.

Regular expression can be abbreviated as:

  • regexp
  • regex
  • regxp

Plural forms of regular expressions are:

  • regexps
  • regexes
  • regexen

(Read more…)

Funky font stuff with CSS

Filed under: CSS Stylesheets

Cascading Style Sheets or CSS can be used to give your font or text a unique look. Here are some funky things you can do to your font to make it a little different from the default.

  1. Color (color)
  2. Letter Spacing (letter-spacing)
  3. Text Align (text-align)
  4. Text Decoration (text-decoration)
  5. Text Indent (text-indent)
  6. Text Transform (text-transform)
  7. Word Spacing (word-spacing)

(Read more…)