Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts

    trying to vertically center a small image

    I have a small ajax busy image (see attachment) displaying but in IE6 the image sits high - is there a way to better center it vertically using CSS?
    Attached Thumbnails Attached Thumbnails trying to vertically center a small image-0.jpg  
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    I did this but no help:

    PHP Code:
        <TD valign="top">
        <
    IMG SRC="ajax_progress.gif" WIDTH="16" HEIGHT="16" BORDER="0" ALT="" style="height: -8;">
        </
    TD
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,673
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by rfresh View Post
    I have a small ajax busy image (see attachment) displaying but in IE6 the image sits high - is there a way to better center it vertically using CSS?
    How are you centering int now?
    Have a look at this demo, there are a couple different approaches there - http://nopeople.com/CSS/vertical%20center%20with%20CSS/

    View the source to see how it's done.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    Thanks very much...
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •