By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

Mozilla Text not justify in label

P: 25
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
Share this Question
Share on Google+
4 Replies


Death Slaught
100+
P: 1,137
Please post your code.

Thanks, Death
Jan 11 '08 #2

P: 25
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

100+
P: 428
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

drhowarddrfine
Expert 5K+
P: 7,435
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.