W3 Updates, HTML, XHTML, CSS, JavaScript, AJAX, XML, PHP, Ruby, PHP Frameworks

Archive

Archive for December, 2009

A confetti menu

December 30th, 2009

The colorful menu you see below is simply a DIV element with a few P elements inside. The visual effect is due to the fact that each P element is positioned individually and has its own font and color. It works best with short texts, because the visual effect is based on overlap, but if [...]

Read More >>

Author: Categories: CSS Tags:

Alternative style sheets

December 30th, 2009

A document doesn’t need to have a single style sheet. You can give it a default style and any number of alternatives for the reader to choose from. This page, for example, has as alternatives all the W3C Core Styles, plus two style sheets found elsewhere on the Web (author: David Baron). How the reader [...]

Read More >>

Author: Categories: CSS Tags:

Indented paragraphs

December 30th, 2009
Eiffel tower

Scale model of the Eiffel tower in Parc Mini-France Here is something simple: indenting the first line of each paragraph. Many people find that easier to read than empty lines between the paragraphs, especially for long texts, and it also allows to reserve empty lines for more important breaks. The trick here is to only [...]

Read More >>

Author: Categories: CSS Tags:

A pinned-down menu

December 30th, 2009

The menu you see in the top right corner of this page is simply a DIV with some A elements inside. All the work to make it stay fixed in its place is done by rules in the style sheet. Here is the mark-up, it is taken straight from the source of this page: <div> [...]

Read More >>

Author: Categories: CSS Tags:

Figures & captions

December 30th, 2009
Eiffel tower

Scale model of the Eiffel tower in Parc Mini-France HTML doesn’t have an element that allows to insert a figure with a caption. It was once proposed (see HTML3), but never made it into HTML4. Here is one way to simulate such a figure element: <div> <p><img src=”eiffel.jpg” width=”136″ height=”200″ alt=”Eiffel tower”> <p>Scale model of [...]

Read More >>

Author: Categories: CSS Tags: ,

Introduction to PHP – Part8

December 6th, 2009

Function: A function is a subprogram that performs a specific task when called by the main program. It is always a good practice to divide a huge program into a number of subprograms until elementary functions are reached. More clearly, a huge program should be divided into number of functions, and a function precisely should [...]

Read More >>

Author: Categories: PHP Tags:

The Role of College for Web Designers

December 6th, 2009

According to traditional society, college is something you go to right after high school to become something. It’s where you blossom into an adult and develop lifetime skills and friendships. Without a degree, you’re in trouble. So what about web design? Who is going to teach me that? Is that something I have to do [...]

Read More >>

Author: Categories: Web Building Tags:

A Guide to OOP (Object Orientated Programming) in PHP Part 1

December 6th, 2009

In this part we’ll cover the basics of classes, and how to put together your own class. We’ll also go over how to make variables. Classes add a lot of functionality to your code and help to stop you repeating yourself over and over again as you might in conventional code. With classes and functions [...]

Read More >>

Author: Categories: PHP Tags:

10 Ways to Become a More Successful Freelancer

December 6th, 2009

1. Never write yourself off When I started freelancing I would sometimes write myself off as not good enough for the job. It’s hard not to be sometimes, when the world is full of so many talented people and your work looks mediocre in comparison. Without self confidence in your own work and ability though, [...]

Read More >>

Author: Categories: SEO Tags: