How to Center an Image

Now that you know how to add a image to your web site, let me show you how to center the image. There are two ways in which you may do this. The first way is to open a new <div align=”center”> tag Then add the following code: <img src=”http://www.2bdrawing.com/image-files/audi-r8-thumb.jpg” alt=”pencil drawings” width=”108″ height=”108″ /> [...]

Now that you know how to add a image to your web site, let me show you how to center the image. There are two ways in which you may do this.

The first way is to open a new <div align=”center”> tag

Then add the following code:

<img src=”http://www.2bdrawing.com/image-files/audi-r8-thumb.jpg” alt=”pencil drawings” width=”108″ height=”108″ />

and close the <div align=”center”> tag with this <’/div>.

Now your code will look like this:

<div align=”center”>

<img src=”http://www.2bdrawing.com/image-files/audi-r8-thumb.jpg” alt=”pencil drawings” width=”108″ height=”108″ />

</div>

That’s all! Your image should look like this:

pencil drawings

Related posts:

  1. How to Add an Image to Your Web Site

Related Posts

Popular Posts


Leave Your Response

* Name, Email, Comment are Required