How to center a photo ?

Discussion in 'ASP.NET 2.0' started by scm22ri, Nov 24, 2007.

  1. Hi Everyone,


    I'm trying to figure out how to center my photos using visual studio 05 express edition. I think I'm doing it correctly, I'm right clikcing on the photo pressing "style" then "Text" horizontal = Center Vertical = Middle. The photo in Visual Web Developer centers but when I publish the site, it stays to the right ? Would you anyone know why this is happening ?


    Below I've added some of my source code. Any help would be greatly appreciated. Thanks everyone.


    http://loverportal.com/APracticePage2.aspx
     
  2. An easy way is to use a DIV tag and a Panel.
    Actually using a Panel for ASP.NET is always a good idea, they work very well with everything.



     
  3. Anyplace after the form tag.
    If you're using Master pages, anywhere after the content tag.
     
  4. Hi,


    Thanks for the reply. Do I need to insert this code into my page? If so, where ?


    Thanks
     

Share This Page