You are here: Re: How can I make an image appear in the centre of the page? « HTML « IT news, forums, messages
Re: How can I make an image appear in the centre of the page?

Posted by Jedi Fans on 08/10/05 14:06

Ant wrote:
> Thanks everyone for the replies!
>
> I should have mentioned that I would like the image to act as the entrance
> to a site - so you click on the picture and get taken to the main page - so
> I don't think the background method will work for this - my bad, should have
> said.
>
>
css:
img.central{position:absolute;width:WIDTHOFIMAGEpx;height:HEIGHTOFIMAGEpx;left:50%;top:50%;margin-top:-HALFOFIMAGEHEIGHTpx;margin-left:-HALFOFIMAGEWIDTHpx;}

html:
<img src="enter.png" class="central" alt="Enter the website" />

--
Hope This Helped and MTFBWY...
Kieren aka JediFans - <URL:http://jedifans.com/>
The Force Is With Me, SuSE Linux Professional 9.3, Mozilla Firefox
1.0.6, Mozilla Thunderbird 1.5 Alpha 2 and Revenge Of The Sith!

 

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

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