SitePoint Sponsor

User Tag List

Results 1 to 15 of 15
  1. #1
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question "align=justify " not supported by IE?

    I'm getting centered text ( in IE) whenever I use this tag property to align my text. for other browsers it works fine...
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  2. #2
    SitePoint Member
    Join Date
    Oct 2003
    Location
    desert
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by hpnadig
    I'm getting centered text ( in IE) whenever I use this tag property to align my text. for other browsers it works fine...
    use text-align: justify;
    via css

  3. #3
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    didn't work.
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  4. #4
    SitePoint Member
    Join Date
    Oct 2003
    Location
    desert
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    show me how youre using it
    it works for me.

  5. #5
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    td.con { text-align:justify; }
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  6. #6
    SitePoint Member
    Join Date
    Oct 2003
    Location
    desert
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    whats that .con? i dont get why youre putting thta there.. unless its a separate class and you want the attribute to be applied to that as well? put a space between td and .con.. or maybe try a comma separating the two, i forgot which works

  7. #7
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    con is a subclass ( or the one which comes under the general group of td in the heirarchy[correct me if I'm wrong here
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  8. #8
    SitePoint Member
    Join Date
    Oct 2003
    Location
    desert
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well ive never heard of subclasses, im fairly new to css myself

    i would have just done it simply like
    #text {
    text-align: justify;
    }

    and then in body somewhere

    <p id="text">your text here</p>

  9. #9
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    His CSS is correct. Are you using a WYSIWYG editor for the rest of the page?

  10. #10
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DJ P@CkMaN
    His CSS is correct. Are you using a WYSIWYG editor for the rest of the page?
    no.


    actually the css looks messed up 'cos I never tried to optimise it. whenever I needed new propertie and couldn't find one alreay defined, chances are that I've defined one again and used it...

    need a bit of time to trim my stylesheet.. looking forward to doing that on next weekend.

    But that's somthing out of topic.. I first saw justify being used in Dreamweaver.. ( this was years back) and used it in my old page. Now, I no longer use dreamwever and had completely forgotten about the property. recently, I found out while brwosing my site on IE ( I hardly use IE) that a few pages had awful text alignments! and those were 'cos I had used 'justify' for alignment...

    for Netscape and Opera and Firbird, it works fine...
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  11. #11
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which version of IE?
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  12. #12
    SitePoint Wizard Mike Borozdin's Avatar
    Join Date
    Oct 2002
    Location
    Edinburgh, UK
    Posts
    1,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jeff Lange
    Which version of IE?
    At last, somebody has asked this question

  13. #13
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    India
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by hpnadig
    actually the css looks messed up 'cos I never tried to optimise it. whenever I needed new propertie and couldn't find one alreay defined, chances are that I've defined one again and used it...
    Since 'text-align' inherits, all block-level elements with "JUSTIFY" value inside the 'DIV' or 'P' or 'BODY' element with 'CLASS=center' will be centered. Note that alignments are relative to the width of the element, not the canvas.

    - Experienced WordPress Consultant.
    - Get website design done by Anblik Web Design Company.
    - Collection of Top Free Online Website Builder.
    - Collection of Free Online Website Usability Testing Tools.

  14. #14
    SitePoint Zealot hpnadig's Avatar
    Join Date
    Sep 2003
    Location
    Bangalore
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jeff Lange
    Which version of IE?
    IE 6.0 with SP1
    Home Page| Blog | Gallery
    sys op & contributor @ kn wikipedia

    Still stuck with a stinky browser? Go get FireFox

  15. #15
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    inline for a quick fix

    ....<td style="text-align:justify;">blah</td>....


Bookmarks

Posting Permissions

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