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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Center images...

Status
Not open for further replies.

chiba

Technical User
Aug 11, 2004
17
0
0
CA
Hello!

I have a "enter" page with a large centered picture, I
optimized this page for 800*600. Here's the problem....
Right now I have it centered perfectly when I view it in 800x600, but when I view it at 1024x768 it's only centered
left-to-right and is at the top of the window with a huge blank space at the bottom. Any idea how to fix this problem? I want it centered all the time regardless of what
resolution I choose...how????

THX

/Chiba
 
Someone else may know more about this than me, but as far as I know you would need a Java applet in your page to detect what res the screen of the user was set to, so it could calculate the position of the edges and hence the centre position.

A java programmer could probably do this fairly easily. I have seen it done this way on other sites.

Stuart
 
Far to hard stuart

Put the image in a table, height and width 100%

Put the image in it

Set align text centre(horizontal centring)

Default vertical centring is middle anyway so that should be it.
 
Ah, stupid me... tables of course! :)
That did it! THX!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top