Archive for category Tutorials

HTML Tables Tutorial with rowspan & colspan

HTML Tables used to be THE WAY web designers would create complex designs.  Even today many websites employ tables for layout of the website.  While I much prefer the faster and cleaner CSS method of creating web page layouts, understanding Tables will help you gain valuable insight into web programming and page layout.

The following graphic illustrates the main takeaway from tables. TR designates a Table Row, while TD designates a Table Data Cell. Table Rows contain one or more Table Data Cells. There is no real thing as a “table column” tag. Several rows containing several table data cells make up rows and columns.

HTML Tables

HTML Tables

Here is a quick overview of tables with a couple of graphics along with a 30 minute “crash course” video tutorial on how to create tables with rowspans and colspans.  Rowspan and colspan are the attribute tags used in tables to “merge” cells or rows together.

Here is an example of a table with column and rowspans:

1
3
5 6
8

Watch the following video for a complete introduction and code examples.

Get the Flash Player to see this content.

Download the video file with quicktime.
tables

Tags: , , , ,

Website Directory Structure and Path Referencing

Instructions

I’ve created a couple of short video screen cast tutorials on the basics of common directory structure setups for websites.  I’ve also included a short tutorial on how to reference images and paths using Relative and Absolute paths in HTML using a pre-defined directory structure.

I’ll include the example directory structure as a download as well so that you can follow along on your own.  After following me, continue to practice creating additional links and images on the different .html pages located in the “site_root” folder.

Note: If you have questions please post them in the comments section of this page.  I will answer them there, as other viewers may have similar questions.

I’ve compressed the videos quite a bit, so I hope the video and audio is okay.  If it’s not, I’ll repost higher res versions.

Videos

Flash Versions

(Click the full screen button to see the Flash versions BIG)

Part 1

Get the Flash Player to see this content.

Part 2

Get the Flash Player to see this content.

Sample Files

site_root Folder

Tags: , , , , ,

Create Seamless Repeating Backgrounds in Photoshop

A quick refresher on how to create seamless backgrounds in Adobe Photoshop for use on the web. Seamless backgrounds are used in background elements, menus, sidebars, & buttons.  Pretty much all over the place!  Get comfy with creating them.

These are the steps.

1) Find an image

First either create or find an image that you are going to use to repeat.  I’ll do grass, since it is relatively easy.

I did a google search for grass, and chose to use this image.

Grass!

Grass!

Remember to select a portion of the grass where the colors are uniform.  Choosing the dark corners would ruin our pretty pattern we are going to make.

2) Select a portion of the image to use for your pattern. I chose a 150 px by 150 px square in the middle.  Remember to always use a number that divides by two nicely.  (Even numbers).  Select the rectangular marquee tool, change its option style to “Fixed Size” and type in 150 for height and 150 for width.  Click anywhere on your grass, and the perfectly square marching ants will appear.  Position these by clicking on the selection and dragging it to where you want. Like so

Screen shot 2009-09-22 at 2.49.12 PM

3) Crop it. Once you have your selection over your desired portion of the grass, go to Image->Crop.  This will re-size your document to the same size as your selection.

4) Offset it. Go to Filter->Other->Offset and choose for the vertical and horizontal sizes exactly half of your initial selection (150 / 2 = 75).  So choose 75px for the vertical and horizontal offset values.  Make sure “wrap around” is checked and hit “Okay.”  This will now offset your document so that there appears lines down the middle both vertically and horizontally of the grass.

Screen shot 2009-09-22 at 2.58.05 PM

5) Get rid of the middle lines. Zoom in so that you can see better.  All we have to do now is use the Clone Stamp tool, or the “Patch” tool or any other method you choose to get rid of those middle lines.  Just put click on the clone stamp tool, hold down alt/opt and click near the line, not directly on it.  Choose a brush size around 20px and then clone stamp away the lines.  Once your satisfied with the result save the newly created pattern by going to Image->Define Pattern.  Give it a name.

6) Test it. To see how the pattern will look once it is tiled or reapeated across a background, create a new photoshop document about 800 px by 800px.  Go to Edit->Fill.  Make sure that under the “Use” you have “Pattern” selected, click on the little pattern icon box, and choose the pattern you just created.  (It should be the last on the list) and hit “OK.”

This should fill your photoshop document with that pattern and should look something like the following:

Screen shot 2009-09-22 at 3.00.05 PM

7) Delight in your newly created wonder!

Like most everything the web is FULL of free resources for web designers.  The following links are links to sites that have TONS of patterns.  Feel free to download them, change the colors of them in Photoshop, create you own patterns from them, or simply use them in your own designs.

http://patterncooler.com/

http://www.grsites.com/textures/

http://patterrific.com/

http://dezignus.com/floral-patterns-background/

http://www.dinpattern.com/

http://www.squidfingers.com/patterns/

http://www.noqta.it/dromoscopio/

If you have questions, post them in the comments.  Share tricks you discover as well.

Tags: , , ,