473,385 Members | 1,764 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.

Complicated Question?

Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it's one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you'd expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can't imagine why. If I remove the float, the scrollbar goes away.
Jul 20 '05 #1
19 1724
Mark Johnson <10*******@compuserve.com> wrote:
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it's one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you'd expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can't imagine why. If I remove the float, the scrollbar goes away.


If I might answer my own question, it probably is due simply to the
difference between 'quirks' and 'strict' mode in Firefox .8 or .9.

I prefer quirks, but would probably be able to render in Firefox using
strict. As it is Firefox kicks out extra-wide divs, spans, what have
you. IE isn't as bad. But switching to strict causes problems in IE,
as well.

Quirks mode is typically had by not including a URL in the DOCTYPE. If
using XSLT, that means including no "doctype-system" parameter. If you
do include the URL/URI then typically browsers kick into a strict
mode, which can completely change the rendering of your style sheets.

One day, I may decide to go transitional 4.01 strict, instead of
quirks as of now. But it's a lot of work to rework all those style
sheets just so I won't get a horizontal scroll bar in Firefox - which
browser hardly anyone uses. It'll take time. It might be worth it.
Jul 20 '05 #2
In article <cl********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it's one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you'd expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can't imagine why. If I remove the float, the scrollbar goes away.


URL?

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 20 '05 #3
Lauri Raittila <la***@raittila.cjb.net> wrote:
In article <cl********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it's one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you'd expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can't imagine why. If I remove the float, the scrollbar goes away.


URL?


Box model differences between strict and quirks mode.

Frankly, I didn't realize that strict mode will NOT allow custom
attributes. I require attributes of my own choosing for certain
functionality. I literally can't use strict mode. And it seems to be
more trouble than it's worth. The only advantage would be that IE and
Firefox, and NN if they're still keeping that going, and various
versions more importantly (MAC anyone?) would all display the page the
same way, and have available the same DOM for javascript. But I'm told
it doesn't even always work that way.

That being said, I find in Firefox, for example, no real difference in
switching from strict to quirks except that one MUST use the 'px'
suffix for setting pixel values. IE isn't so well behaved.

The way you switch, at least in IE 6, is simply to use a doctype with
something for the type and something for the url. Could just be a
letter "x" in both cases. But using the second value kicks you into
strict mode, and all the problems that still presents in 2004. And
leaving off the second DOCTYPE argument keeps you in default quirks
mode, which you get without any DOCTYPE line at all.
Jul 21 '05 #4
In article <al********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
Lauri Raittila <la***@raittila.cjb.net> wrote:
In article 10*******@compuserve.com says...
I can't imagine why. If I remove the float, the scrollbar goes away.


URL?


Box model differences between strict and quirks mode.

Frankly, I didn't realize that strict mode will NOT allow custom
attributes.


Can't think what box modell has to do with custom attributes. Solve
problem by getting rid of custom attributes.

http://www.hut.fi/u/hsivonen/doctype.html

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #5
Lauri Raittila <la***@raittila.cjb.net> wrote:
In article <al********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
Lauri Raittila <la***@raittila.cjb.net> wrote:
>In article 10*******@compuserve.com says...
>> I can't imagine why. If I remove the float, the scrollbar goes away.
>
>URL?


Box model differences between strict and quirks mode.

Frankly, I didn't realize that strict mode will NOT allow custom
attributes.


Can't think what box modell has to do with custom attributes. Solve
problem by getting rid of custom attributes.


Nobody said it had anything to do with it. I said the difference in
display was due to different models. But part of the strict mode, as I
understand it, is that custom attributes are not allowed. That's
unacceptable, and apparently is seen as such by many on the web - from
what I've read. One may well require attributes for functionality,
which is more efficient than using nested elements, as well.

Many may not approve of javascript, itself, of vbscript or java or
whatever else as anything but rude hacks. But short of compiling
plug-ins for everything, which you have to get people to download,
client side solutions are often very elegant.

Strict mode, in my opinion, doesn't seem 'ready for primetime'.
Jul 21 '05 #6
Mark Johnson wrote;
Lauri Raittila <la***@raittila.cjb.net> wrote:
In article <al********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
Lauri Raittila <la***@raittila.cjb.net> wrote:
>In article 10*******@compuserve.com says...
>> I can't imagine why. If I remove the float, the scrollbar goes away.
>
>URL?

Box model differences between strict and quirks mode.

Frankly, I didn't realize that strict mode will NOT allow custom
attributes.
Can't think what box modell has to do with custom attributes. Solve
problem by getting rid of custom attributes.


Nobody said it had anything to do with it. I said the difference in
display was due to different models. But part of the strict mode, as I
understand it, is that custom attributes are not allowed.


Well, they aren't allowed in any mode. I think you have confused few
things. For example, what you mean by custom attributes?
That's
unacceptable, and apparently is seen as such by many on the web - from
what I've read. One may well require attributes for functionality,
which is more efficient than using nested elements, as well. Many may not approve of javascript, itself, of vbscript or java or
whatever else as anything but rude hacks. But short of compiling
plug-ins for everything, which you have to get people to download,
client side solutions are often very elegant.
URL? Browsers conserned.
Strict mode, in my opinion, doesn't seem 'ready for primetime'.


What you mean by strict mode?

It doesn't help anybody that you answer yourself on questions that are
uncomprehansible for anyone else. I have no idea what you are doing, or
why the hell you need custom attributes. Of why you can't tricker right
mode.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #7
Mark Johnson wrote:
I said the difference in display was due to different models.
Maybe. But since you still haven't provided a url, we can't be sure.
But part of the strict mode, as I understand it, is that custom
attributes are not allowed.
Custom attributes -- by that I assume you mean ones that you've made up
for your own use -- are by definition not allowed in any version of
HTML. But what has this to do with strict or quirks rendering mode? You
seem to be conflating HTML document type definitions with browser
rendering modes. You may want to read how browsers switch between modes.

http://www.hut.fi/u/hsivonen/doctype
http://www.mozilla.org/docs/web-developer/quirks/
Strict mode, in my opinion, doesn't seem 'ready for primetime'.


Until you have a clear idea of the issues involved, your opinion is not
likely to hold much sway around here.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #8
Lauri Raittila <la***@raittila.cjb.net> wrote:
Mark Johnson wrote;
Lauri Raittila <la***@raittila.cjb.net> wrote:
>In article <al********************************@fe02.buzzardne ws.com>,
>10*******@compuserve.com says...
>> Lauri Raittila <la***@raittila.cjb.net> wrote:
>> >In article 10*******@compuserve.com says...
>> >> I can't imagine why. If I remove the float, the scrollbar goes away.
Nobody said it had anything to do with it. I said the difference in
display was due to different models. But part of the strict mode, as I
understand it, is that custom attributes are not allowed.
Well, they aren't allowed in any mode. I think you have confused few
things. For example, what you mean by custom attributes?
Define terms, you mean? That should come first.

Custom attributes. Meta-attributes. Attributes you've never seen. Etc.

unacceptable, and apparently is seen as such by many on the web - from
what I've read. One may well require attributes for functionality,
which is more efficient than using nested elements, as well. Many may not approve of javascript, itself, of vbscript or java or
whatever else as anything but rude hacks. But short of compiling
plug-ins for everything, which you have to get people to download,
client side solutions are often very elegant. URL? Browsers conserned.
You lost me. Maybe you could elaborate beyond just three words.

Strict mode, in my opinion, doesn't seem 'ready for primetime'.

What you mean by strict mode?


Standards mode, then, as opposed to quirks mode. Not strict,
necessarily. Standards mode. But I might just loosely call it, strict,
because it seems more constricting, less flexible, and so more
descriptive.
Jul 21 '05 #9
Brian <us*****@julietremblay.com.invalid> wrote:
Mark Johnson wrote:
But part of the strict mode, as I understand it, is that custom
attributes are not allowed.

Custom attributes -- by that I assume you mean ones that you've made up
for your own use -- are by definition not allowed in any version of
HTML. But what has this to do with strict or quirks rendering mode?
I understood, and excuse me for that but standards mode if that's
better, that standards mode did not allow custom attributes. If they
aren't accessible by code, then functionality - necessary
functionality - might be lost.

Until you have a clear idea of the issues involved, your opinion is not
likely to hold much sway around here.


It wouldn't be in any case. And oddly enough, I'm not bothered by
that.

Jul 21 '05 #10
Mark Johnson wrote:
Brian wrote:

Mark Johnson wrote:
But part of the strict mode, as I understand it, is that custom
attributes are not allowed.


Custom attributes -- by that I assume you mean ones that you've
made up for your own use -- are by definition not allowed in any
version of HTML. But what has this to do with strict or quirks
rendering mode?


I should not have adopted your choice of words. To clarify: The
rendering modes are standards, almost standards, and quirks for Mozilla;
standards and quirks for MSIE 6/Win; and standards and quirks mode for
Opera. I don't think any other browser plays the dtd guessing game.

Strict and transitional (or loose) are terms used by the W3C to
distinguish between various flavors of HTML 4 and XHTML 1.0.
I understood, and excuse me for that but standards mode if that's
better, that standards mode did not allow custom attributes.


You missed my point. Browsers do not switch rendering modes based on
whether the document validates or not. They determine which mode to use
based on whether a doc type declaration is present, and if so, which one.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #11
Mark Johnson wrote;
Brian <us*****@julietremblay.com.invalid> wrote:
Mark Johnson wrote:

But part of the strict mode, as I understand it, is that custom
attributes are not allowed.
Custom attributes -- by that I assume you mean ones that you've made up
for your own use -- are by definition not allowed in any version of
HTML. But what has this to do with strict or quirks rendering mode?


I understood, and excuse me for that but standards mode if that's
better, that standards mode did not allow custom attributes. If they
aren't accessible by code, then functionality - necessary
functionality - might be lost.


Ever thought about about making it normal way?
Until you have a clear idea of the issues involved, your opinion is not
likely to hold much sway around here.


It wouldn't be in any case. And oddly enough, I'm not bothered by
that.


*blonk*

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #12
Brian <us*****@julietremblay.com.invalid> wrote:
You missed my point. Browsers do not switch rendering modes based on
whether the document validates or not. They determine which mode to use
based on whether a doc type declaration is present, and if so, which one.


You're repeating back to me what _I_ originally wrote.
Jul 21 '05 #13
Lauri Raittila <la***@raittila.cjb.net> wrote:
Mark Johnson wrote;
Brian <us*****@julietremblay.com.invalid> wrote:
>Mark Johnson wrote:
>> But part of the strict mode, as I understand it, is that custom
>> attributes are not allowed.

>Custom attributes -- by that I assume you mean ones that you've made up
>for your own use -- are by definition not allowed in any version of
>HTML. But what has this to do with strict or quirks rendering mode?


I understood, and excuse me for that but standards mode if that's
better, that standards mode did not allow custom attributes. If they
aren't accessible by code, then functionality - necessary
functionality - might be lost.

Ever thought about about making it normal way?


Sometimes to add a 'thinnest client' functionality, you might find it
important to store information in HTML/XHMTL, not in elements but in
attributes.

By the way, I've nothing against a 'tried and true' method. And often
people tend to converge on one or a couple of methods in any field,
for certain tasks and situations. But such 'normalcy' is generally
understood and defined. What do YOU mean?
Jul 21 '05 #14
On Fri, 15 Oct 2004 19:13:28 -0700, Mark Johnson
<10*******@compuserve.com> wrote:
Brian <us*****@julietremblay.com.invalid> wrote:
You missed my point. Browsers do not switch rendering modes based on
whether the document validates or not. They determine which mode to use
based on whether a doc type declaration is present, and if so, which
one.


You're repeating back to me what _I_ originally wrote.


But it seemed from your messages that you misunderstood.

What actually happens to my knowledge is that the browser, say IE6, looks
for the precise string <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> and if it sees that, bingo, we're
in standards mode. If it sees <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> it does
something different. And so on. If it sees nothing like this, it is quirks
mode.

What happens if you use a custom DTD? In the case of IE, it won't match
anything in memory, so it cannot use standards mode, it will revert to
some other mode.

So all we're saying is that if you don't have a standardized strict
doctype definition at the start of the document, you can't expect a
browser to use standards mode, it well may not.
Jul 21 '05 #15
Mark Johnson wrote:
Mark Johnson <10*******@compuserve.com> wrote:
sheets just so I won't get a horizontal scroll bar in Firefox - which
browser hardly anyone uses. It'll take time. It might be worth it.


According to W3schools, 17% of their visitors last month were using
browsers identifying as "Mozilla", a fair proportion of which would be
Firefox.

http://www.w3schools.com/browsers/browsers_stats.asp

So even if Firefox was only half of the 'zillas, that's 8% of surfers
you are deciding to ignore - and that's a lot of potential visitors.

Cheers, Fred.
Jul 21 '05 #16
Fred Oz <oz****@iinet.net.au> wrote:
Mark Johnson wrote:
Mark Johnson <10*******@compuserve.com> wrote:
sheets just so I won't get a horizontal scroll bar in Firefox - which
browser hardly anyone uses. It'll take time. It might be worth it.


According to W3schools, 17% of their visitors last month were using
browsers identifying as "Mozilla", a fair proportion of which would be
Firefox.

http://www.w3schools.com/browsers/browsers_stats.asp

So even if Firefox was only half of the 'zillas, that's 8% of surfers
you are deciding to ignore - and that's a lot of potential visitors.


I wouldn't ignore anyone. You serve out a page without anything. And
they see that. Maybe slightly better than plain text. But not much
more. Bullets. Heading. Paragraphs. Basic, presentable. It's fine. But
in fact, I'm trying to upgrade to Firefox, specifically. It's actually
better 'behaved' than IE. I notice no real difference between
'standards' and quirks mode in Firefox for either my javascript or
style sheets. IE wasn't the same. But I had to develop for IE,
initially, because it's still IE's game. Be realistic.
Jul 21 '05 #17
Neal <ne*****@yahoo.com> wrote:
On Fri, 15 Oct 2004 19:13:28 -0700, Mark Johnson
<10*******@compuserve.com> wrote: What actually happens to my knowledge is that the browser, say IE6, looks
for the precise string <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> and if it sees that, bingo, we're
in standards mode.


No, it kicks into standards mode even if you use "x" "x". Any text in
that second argument kicks it into standards. Try it and see.

Now, if you want to say that specific functionality is not either
available or suppressed in THIS way, and IS by specific strings as you
suggest, then be specific. What specific functionality? What specific
DOM elements? What specific CSS?
Jul 21 '05 #18
Mark Johnson wrote:
Brian wrote:

Browsers do not switch rendering modes based on whether the
document validates or not. They determine which mode to use based
on whether a doc type declaration is present, and if so, which one.

You're repeating back to me what _I_ originally wrote.


No, I did not. You were confusing standards mode with document
validation, as if the two were conntected. Here's what you wrote
elsewhere in this thread:

<quote>
....standards mode did not allow custom attributes.
</quote>

A browser's rendering mode is not affected by your use of invented
attributes. It is determined solely by the dtd.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #19
Brian <us*****@julietremblay.com.invalid> wrote:
Mark Johnson wrote:
Brian wrote: You're repeating back to me what _I_ originally wrote.
No, I did not.


I was saying that you did. Guess we'll have to agree to disagree, and
both reread the previous messages.
Jul 21 '05 #20

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

Similar topics

7
by: Bo Peng | last post by:
Dear Python group: I am planning on an application that involves several complicated C++ classes. Basically, there will be one or two big data objects and some "action" objects that can act on...
15
by: Agoston Bejo | last post by:
Hi, I'm having trouble with implementing some constraints on the database level. An example: --Table A(AID, BID ref. B.BID, ATXT) --Table B(BID, CID ref. C.CID) --Table C(CID) upon insertion...
7
by: windandwaves | last post by:
Hi Gurus I am trying to make this rather complicated maps with an a huge number of mouseovers and the like. I want to set up a function that OnMouseDown swaps the OnMouseOver and OnMouseOut for...
2
by: Just D | last post by:
Hi, I need to write a serialization (to XML string) and restoring (from XML string) of a very complicated object. The object uses a few classes, one class has two ArrayLists, etc. The general...
12
by: Michael S | last post by:
Why do people spend so much time writing complex generic types? for fun? to learn? for use? I think of generics like I do about operator overloading. Great to have as a language-feature, as...
16
by: nleahcim | last post by:
Hi - I am starting to look at doing something that I think will be amazingly difficult. I ideally would like to do this in C, as that is what I am best in. I can handle C++ but I am not particuarly...
5
by: jayanthigk2004 | last post by:
Is it possible to write a regular expression for this ? Pattern: 999-99-999 Where 9 is any number from 0 to 9 However the user need not enter ALL the digits and dashes as given in the...
1
Natasha26
by: Natasha26 | last post by:
I came across some strange declarations and am trying to get the hang of it. Any comments on how to read and use such decl. will be most welcomed. 1) Not sure if i understand this one. It could be...
3
by: jonceramic | last post by:
Hi All, I need to know the best way to set up a datawarehouse/materialized view for doing statistics/graphs in Access. My crosstabs and unions are getting too complicated to crunch in real...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.