Mozilla Text not justify in label

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jayasabari
    New Member
    • Sep 2007
    • 25

    Mozilla Text not justify in label

    Hi all,
    i am working on asp.net. i am using label to display some text in multi line. In css i am giving "text-align: justify;". It is working in IE perfectly but in Mozilla not working.

    Can any one help me.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Please post your code.

    Thanks, Death

    Comment

    • jayasabari
      New Member
      • Sep 2007
      • 25

      #3
      My Code

      [CODE=html]<TD><asp:labe l id="lbl_aboutus " runat="server" CssClass="conte nts" Width="98%" Font-Size="X-Small"></asp:label></TD>[/CODE]

      css is

      [CODE=css].contents
      {
      FONT-SIZE: 11px;
      COLOR: #0a211a;
      FONT-FAMILY: Verdana;
      TEXT-DECORATION: none;
      text-align: justify;
      overflow: hidden
      }[/CODE]
      Last edited by eWish; Jan 11 '08, 02:28 PM. Reason: Added Code Tags

      Comment

      • mrhoo
        Contributor
        • Jun 2006
        • 428

        #4
        A label is an inline element.
        You can't set a width or force newlines in inline elements- unless you have IE in 'quirks' mode.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          And you should never be in quirks mode. This is another example of why you should never use IE as a reference for how things should work.

          Comment

          Working...