Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Centering Image on page

Status
Not open for further replies.

Charliesz

Technical User
Jul 24, 2003
95
CA
Hi there.

Trying to create an intro page for my website which is basicaly a clickable image on which links to the first page.

Is there a way to center an image in the middle of the page with any resolution(800x600,1027x768...)? like an absolute center kind of thing:)

Thanks
 
Trying to create an intro page for my website
What are you trying to do, seduce them into your site? They're there already, just take them straight to the site!
Seriously, a lot of highly respected web developers and usability experts have spoken against intro pages.

But if you must:
Code:
<div [COLOR=red]style="text-align:center;"[/color]>
  <a href="anotherpage.html">
    <img src="an_image.jpg" alt="description of the image" />
  </a>
</div>
Have a read up on css - it'll make your web designs better, easier to do, and easier to maintain.

<marc>
 
To center it verticaly use;
Code:
<div style="text-align:center; [COLOR=red]margin-top:25%;[/color]">
  <a href="anotherpage.html">
    <img src="an_image.jpg" alt="description of the image" />
  </a>
</div>
You may have to play with the percentage depending on your image size.

Glen
 
Thank you guys very much , going to try it right away
 
RE: intro pages and splash screens


Imagine being forced to watch a commercial everytime you went to the supermarket/store BEFORE they would let you in?
(If you are in the UK think Jamie Oliver and Sainsbury's)

It would get tiresome fast wouldn't it?

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
I remember reading in a column about web page design that the only people who like the intro pages are the people who design them and the people who buy them. The viewing customers MAY find them cute the first time, annoying the second time, and obnoxious after that.

Lee
 

They're just like the copyright warning on DVDs. A pain to sit through, but easy to skip (assuming you have a chipped DVD player, of course... er... ;o)



[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top