1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to correctly center a photo ?

Discussion in 'C#' started by JohnMally, Nov 24, 2007.

  1. #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 ?
    SEMrush
    Below I've added some of my source code. Any help would be greatly appreciated. Thanks everyone.

    http://tinyurl.com/23h4bw

    P.S. In Firefox and Opera the photos are centerd but i IE7 Explorer each photo is aligned to the left ?

    Thanks
     
    JohnMally, Nov 24, 2007 IP
    SEMrush
  2. orielo

    orielo Peon

    Messages:
    175
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what you did is align the text beside the image (which you dont have)
    what you need to do,
    since its in a table, in the td properties, choose align=center.
    gl.
     
    orielo, Nov 25, 2007 IP
  3. T-P-X

    T-P-X Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    maybe u need to do different style for IE 7
    (u need to ask wich browser read the page and give him special style.)
     
    T-P-X, Nov 25, 2007 IP
  4. dzoolhelmi

    dzoolhelmi Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <table>
    <tr>
    <td><img </td>
    </tr>
    </table>
     
    dzoolhelmi, Dec 11, 2007 IP
  5. dzoolhelmi

    dzoolhelmi Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can try this...

    <table>
    <tr>
    <td><center><img src="image.jpg"></center></td>
    </tr>
    </table>

    http://www.asp-open-source.blogspot.com/ <--- Download ASP open source for FREE !!!
    http://www.asp-open-source.blogspot.com/ <--- Download ASP open source for FREE !!!
    http://www.asp-open-source.blogspot.com/ <--- Download ASP open source for FREE !!!
     
    dzoolhelmi, Dec 11, 2007 IP