473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
4 2500
Death Slaught
1,137 1GB
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
mrhoo
428 256MB
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
7,435 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

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

Similar topics

6
by: Patrick | last post by:
Hi I am fairly new to CSS and the web.I am trying to build a site more to practice my skills than for the site itself. I have been focusing on CSS and try my best to make it work in I.E 6.0,...
1
by: NancyASAP | last post by:
I have a label on my ASP.NET form. It has a cssclass that includes a background color. I am dynamically putting text in this label. The text contains some embedded html (I want to display part...
4
by: cashdeskmac | last post by:
I want to justify the text in a label control so that all of the text fills the label equally, but there don't seem to be any properties to set to allow this. Can anyone help?
5
by: tranky | last post by:
Hi... ....i've a problem. I want to justify a label text, it is possible? I want to align text to the right but also to the left. There's a way to do it? Do you know any function? Thank you for...
2
by: nigel | last post by:
Hello i have been working on an interactive programme,i wish to use a small amount of Tk.Which i have taken from a tutorial. from Tkinter import * root = Tk() w =Label(root, text="Congratulations...
1
by: pamate | last post by:
Hi all, I am creating tables using CSS ( tag).I am facing problem of width . I am giving 70% and 30% width to the respective div`s but it showing me difference in IE and Mozilla its not showing...
1
by: suneel271 | last post by:
code working in internet explorer but not in mozilla and iam getting erroe like window.event has no properties and here is the code <%@ page language="java" contentType="text/html;...
7
by: praveenb000 | last post by:
Hi, every one on this forum.... I am new to web designing (using HTML/CSS). i designed a web page using HTML, Css with dream weaver. Here is the code i used for the desinging. it appears well...
3
by: PrabodhanP | last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF. It is located at the location.....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.