Free Webmasters Resource
 

Free Graphics, Tutorials, Scripts, Webmaster Forums, Web Templates, SEO Tools, & Much More!!

Home Scripts Tutorials Free Downloads Articles SEO Play Free Games Web Templates

Images

It's always nice to be able to position images just the way you want them. In this tutorial, you can learn about all the image aligning features built into HTML.

Once you have images created and put on your server, you only need to use some simple code to put them in. We're going to tool around with this image: Sample Image How did I make that appear? Here's how:

<img src="pic.gif">


This code puts the file "pic.gif" into the web page. Now, you can add some other features, by adding these attributes inside that line

width="size (in pixels)" to change the width
height="size (in pixels)" to change the height
border="size (in pixels)" to change the border size

You can also link images to different web pages. A common practice in the Internet world is to use images like buttons as links and to use an image as your homepage. Also, when a user puts his/her mouse over the image, you can make a little popup text come up that gives information about the image (called ALT text). For example:

<a href="mypage.html"><img src="pic.gif" width="22" height="22" border="2" alt="Here is the ALT text I talked about."></a>


Produces:

Sample Image


I linked the image to mypage.html and shrunk the dimensions to 22x22 pixels. If the user puts his/her mouse over the image, the message "Here is the ALT text I talked about." pops up.

There is one more attribute you can use with images, the align attribute. Here is a table showing the different types of vertical alignments that you can use. Once again, the attribute goes inside the <img src> tag.

<img src="pic.gif" align="texttop">

Spoono Sample Image Spoono

<img src="pic.gif" align="middle">


Spoono Sample Image Spoono

<img src="pic.gif" align="absmiddle">


Spoono Sample Image Spoono

<img src="pic.gif" align="bottom">


Spoono Sample Image Spoono


The align values of left, right, and center can also be used to change the horizontal alignment of an image relative to the objects surrounding it. If perchance you have the need to align an image both horizontally and vertically at the same time, then you will need to organize your images and other content with tables or layers.

Now all you need to know is how to make images. For that you might want to check out our Photoshop Tutorials.

 

Tutorials: HTML

Title/Description

Level

Backgrounds: Tutorial
Learn how to effectively add backgrounds to your page that make your page look professional or amateur.

Beginner

Imagemaps: Tutorial
Make one image into various clickable regions using only HTML

Intermediate

Embedding Fonts: Tutorial
Learn how to use uncommon fonts in web pages by embedding them.

Advanced

Images: Tutorial
Positioning images can make your images look just right when inserted into text.

Intermediate

Form Effects: Tutorial
Learn how to create trendy forms with simple style commands as well as with CSS classes.

Intermediate

Layers: Tutorial
Layers can make complicated image placement possible.

Advanced

Forms: Tutorial
Use forms to gather information from your users.

Advanced

Links: Tutorial
Making links in HTML is the easiest thing you will ever do.

Beginner

Frames: Tutorial
Learn how to create frames that enable you to create navigation systems on your site.

Advanced

Scrollbars: Tutorial
Learn how to add effects to your scrollbars and add flavor to your page.

Advanced

Hide From Print: Tutorial
Learn how to only allow a visitor to print part of your page using CSS.

Intermediate

SSI: Tutorial
Learning how to do SSI will save you a lot of authoring time.

Advanced

Horizontal Line: Tutorial
The horizontal line serves as a great separator tool.

Beginner

Table Styles: Tutorial
Learn how to add various table styles such as dash or dot borders, and many other things.

Intermediate

Iframes: Tutorial
Iframes can organize your website into clean sections.

Advanced

Tables: Tutorial
Organize your web page layouts with tables.

Intermediate

216 Web Safe Color Chart: Tutorial
The 216-color color-safe palette refers to colors (RGB values) that will appear the same on either IE or Netscape and Windows or Mac platforms.

Beginner

Pantone RGB/Hex/HTML Colors: Tutorial
This table contains all pantone colors converted to RGB and Hex. It displays them all in HTML colors.

Intermediate

 


Home Contact Credits Flash Templates Webmaster Forums Site Map Webmaster Resources Advertise


Computer Playground
· Templates Resource