You are here: Re: center image horizontally?? « HTML « IT news, forums, messages
Re: center image horizontally??

Posted by saz on 09/29/47 11:32

In article <11nvdvshjgkn8ba@news.supernews.com>, DavidS@Bellwest.org
says...
> Hi All,
>
> I'm trying to add an image to a website. The web-site builder I'm using has
> this tag:
>
> <img style="width: 800px; height: 298px;"
> alt="helo"
> src="../jet_ranger.jpg"><br>
>
>
> I tried the "align=center" tag but no joy. So, how can I center the image
> on the page horizontally?
>
> Any pointers really appreciated.
>
>
Any web-site builder that writes that kind of code belongs in the
garbage.

The simplest way, removing the crappy css code:

<div align="center">
<img alt="helo" src="../jet_ranger.jpg" width="800px" height="298px">
</div>

But there are several other ways using CSS *properly* to achieve the
same effect.

I would also recommend making the image no wider than 750px. At 800px,
you will get a horizontal scrollbar in 800 x 600.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация