473,387 Members | 1,678 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,387 software developers and data experts.

Problems with CSS in Mozilla

I'm having problems with the display of forms, using CSS, in Mozilla
Firebird (and probably other Mozilla-based browsers).

I have boiled it down to a fairly small example page, which not only
shows the problems, but explicitly points out what they are:

http://www.vesterman.com/CSSProblem.html

It uses the style sheet:

http://www.vesterman.com/Style/Default.css

The page is valid XHTML1.1; the style sheet is valid CSS 2.

Please take a look at it in Mozilla and IE; the way it looks in IE is
the way that I would like it to look.

Does anyone see what I'm doing wrong? Or, even if you don't see
anything I'm doing wrong, do you see another way to accomplish what
I'm trying to do?

Thanks in advance for any help.

Bob Vesterman.
Jul 20 '05 #1
2 4535
>>>>> "bob" == Robert William Vesterman <bo*@vesterman.com> writes:

bob> I'm having problems with the display of forms, using CSS, in Mozilla
bob> Firebird (and probably other Mozilla-based browsers).

I think you are misunderstanding the use of float. Whenever you make
a div float, it pulls it out of the normal flow at lines it up to the
left or right, allowing content below it to fill in the extra space to
the side. Not sure if the bug is in Mozilla/Firebird or in IE as to
the proper rendering. Once you 'float: right' the content is not used
for calculating height of the parent box (unless a clear is used), so
the content may spill out of the parent box. That's what you're
seeing in Mozilla. In fact, there's a great example of exactly
this in the spec:

http://www.w3.org/TR/REC-CSS2/visuren.html#floats

This is also the reason that your formLineLeft and formLineRight
don't line up properly. The left stuff is pushed up to the
left as much as possible, the right stuff pushed up right.
Since the left lines are shorter, they bunch up.

Add a red border to formLineLeft, and a green border to formLineRight
and you can see how the tops don't line up between left and right.
(This also shows that your input boxes extend beyond the
actual formLineRight box, thus overlapping to the right of the
contentSection (at least in Mozilla for Mac)).

Then...just for fun, increase formLineRight width to something
like 70% and see how they are rendered...

This looks like a great opportunity for a table to me...

....cj

--
------------------------
-- Christopher J. White
--
-- chris @ (---)
-- grierwhite . com
------------------------
Jul 20 '05 #2
Robert William Vesterman <bo*@vesterman.com> wrote in
news:67********************************@4ax.com:
http://www.vesterman.com/CSSProblem.html

It uses the style sheet:

http://www.vesterman.com/Style/Default.css

The page is valid XHTML1.1; the style sheet is valid CSS 2.

Please take a look at it in Mozilla and IE; the way it looks in IE is
the way that I would like it to look.


Is that with the input elements centered, and the labels on top of them and
indented a bit? If so, put "clear: both;" on .formLine, increase the width
assigned to .formLineRight (the width you had assigned was smaller than the
actual width; that and the lack of clear on .formLine were causing the form
to spill outside its div), add "display: block;" to both .formLineLeft and
..formLineRight, remove the "float: right;" from .formLineRight and replace
it with "margin: 0 auto;".
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Cameron McCormack | last post by:
Hi. I have a couple of problems with borders, where the appearance in IE and Mozilla differs. In my test file http://mcc.id.au/~cam/border.html I have a large double border-left on the...
15
by: Viken Karaguesian | last post by:
Hello all, I'm having a problem with DOCTYPES. Until now, I haven't been specifying doctypes. I want to start specifying doctypes, but am having trouble doing so. Whenever I specify a doctype,...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
1
by: cwdjrxyz | last post by:
I am now writing many new pages in xhtml 1.1. They are served as true xhtml by setting the mime type of the server to application/xhtml+xml for the .xhtml extension. Since IE6 and some earlier...
0
by: Chris Schremser | last post by:
I have a question regarding embedded controls in IE. We are looking to replace a small VB ActiveX control with something written in C#. We have written the control and it instantiates correctly...
7
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one...
1
by: trevors_decoy | last post by:
Hi, apologies if this sort of query pops up all the time - I did spend a while searching the archives first... My website tries to protect my email address from the spam harvesters by...
4
by: jwwest | last post by:
Hello all, I've been building a simple site based on XML, XSL and CSS in order to help me learn those technologies better. However, building a tableless page is brand new to me so I've run into...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.