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

Centre Align using Absolute Positioning

Status
Not open for further replies.

GavW

Programmer
Jan 13, 2006
58
GB
Hey all!

I was wondering if it was possible to centre align a complete web page when working using absolute positioning within VS 2005 (formerly GridLayout in VS 2003)

All that I require is that the content of the page appears in the centre of the web browser at all resolutions. Any suggestions as to how I can acheive this would be appreciated.

Also I am trying to perform a rollover image change on an Image object within VS with no luck.

I am coding using the C# language.

Thanks in advance
 
You can't do this if your whole page uses absolute positioning (although you may be able to work out via javascript what the dimensions are and set the position that way but it's prone to problems). Can't you just use a flow layout as absolute positioning should be avoided if at all possible?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top