467,873 Members | 1,848 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,873 developers. It's quick & easy.

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.
Jan 11 '08 #1
  • viewed: 2115
4 Replies
Death Slaught
Please post your code.

Thanks, Death
Jan 11 '08 #2
My Code

Expand|Select|Wrap|Line Numbers
  1. <TD><asp:label id="lbl_aboutus" runat="server" CssClass="contents" Width="98%" Font-Size="X-Small"></asp:label></TD>
css is

Expand|Select|Wrap|Line Numbers
  1. .contents
  2. {
  3.     FONT-SIZE: 11px;
  4.     COLOR: #0a211a;
  5.     FONT-FAMILY: Verdana;
  6.     TEXT-DECORATION: none;
  7.     text-align: justify;
  8.     overflow: hidden
  9. }
Jan 11 '08 #3
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.
Jan 11 '08 #4
Expert 4TB
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.
Jan 11 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Patrick | last post: by
1 post views Thread by NancyASAP | last post: by
4 posts views Thread by cashdeskmac | last post: by
5 posts views Thread by tranky | last post: by
2 posts views Thread by nigel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.