ALIGN no longher working for images?

Discussion in 'CSS' started by redhits, Oct 22, 2009.

  1. #1
    I have a line code like
    <code>
    Not found in archive! <img src="/images/crying.gif" ALIGN="TOP" border=0> <img src="/images/crying.gif" ALIGN="BOTTOM" border=0>
    </code>

    but i see align have no effect in firefox, firefox display both images on the same line...
     
    redhits, Oct 22, 2009 IP
  2. nihangshah

    nihangshah Prominent Member

    Messages:
    5,536
    Likes Received:
    271
    Best Answers:
    3
    Trophy Points:
    395
    #2
    Try adding a <BR>.
     
    nihangshah, Oct 22, 2009 IP
  3. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #3
    there was no difference between those 2 images because the font-size was to small :)

    align=top or align=bottom only work if the text is much bigger then the image, otherwise the image will lay on top :) and it will look like SXXT:(
     
    redhits, Oct 22, 2009 IP
  4. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is because the "align" attribute is deprecated (meaning they have got rid of it), and it will not be supported by new browsers in the future.
    Why did they get rid of it, and the support for it? Because what it does is adjust the presentation of the image, and this can be done via CSS. CSS was created for altering presentation after all.

    We'd have to see the full HTML for the area and explain how you wanted it to look, then we could provide a CSS based solution which works in all browsers, past and present.
     
    wd_2k6, Oct 23, 2009 IP