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

Centre something on a web page.

Status
Not open for further replies.

Copierbw

Technical User
Sep 25, 2002
112
IE
Can someone please help me. Is it possible to have something always in the middle of a web page(screen(x,y axis)). I would like a small picture to be always in the middle of my web page even if the screen resolutions change from 800x600 or 1024x768?
 
try placing the picture in a 100% wide table centering it
[tt]
"The only ideas that will work for you are the ones you put to work."
[/tt]

banana.gif
rockband.gif
banana.gif

 
use the align=&quot;center&quot; property of the paragraph tag <p>

<p align=&quot;center&quot;>
<br><IMG height=130 src=&quot;images/imatronlogo_wimage.jpg&quot; width=130><IMG height=130 src=&quot;images/logo_childheartcent_sm.gif&quot; width=80></p>

This will keep these images in the center of the page no matter how the user decides to resize his browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top