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

Border problems : IE vs Seamonkey

I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the outer
DIV correctly. IE displays 'what I want' but then I'm not sure if that's
because I'm doing something right, or found an artifact that works.

Is SM broken regarding borders, or am I missing something? Can someone
shed some light please?

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 15 '06 #1
12 2135
Amer Neely wrote:
I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the outer
DIV correctly. IE displays 'what I want' but then I'm not sure if that's
because I'm doing something right, or found an artifact that works.

Is SM broken regarding borders, or am I missing something? Can someone
shed some light please?
<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>

--
Gus
Dec 15 '06 #2
Gus Richter wrote:
Amer Neely wrote:
>I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the outer
DIV correctly. IE displays 'what I want' but then I'm not sure if
that's because I'm doing something right, or found an artifact that
works.

Is SM broken regarding borders, or am I missing something? Can someone
shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>

Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but the
results still don't appear any better.

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 15 '06 #3
Amer Neely wrote:
Gus Richter wrote:
>Amer Neely wrote:
>>I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but the
results still don't appear any better.
I prefer the HTML 4.01 Strict - as you had it at first. Now you validate
deprecated elements with XHTML 1.0 Transitional.

Your: <br clear="all" / doesn't cut it. See:
<http://www.w3.org/TR/CSS21/visuren.html#propdef-clear>
Is "all" IE proprietory? Although Fx and Opera seem to support it -
don't use it!
Remove it from where it does no good and add at the end of your doc:
.............</p>
<br clear="both" />
</div></div></body></html>

Basically this (per the specs) is what you're probably looking for,
although there needs to be more markup correcting/tweaking and now you
probably have IE6 lack of support to deal with.

--
Gus
Dec 16 '06 #4
Amer Neely wrote:
Gus Richter wrote:
>Amer Neely wrote:
>>I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but the
results still don't appear any better.
Your left and right columns have a width of 20% plus a horizontal
padding of 15px. Remember, dimensions and padding are additive, so
these elements end up with a total width of 20% + 15px each, while the
margins on your center column only account for the 20%.

The reason it displays as you want in IE is because the document is
going into quirks mode as a result of the XML prologue. Remove that, so
the <!DOCTYPEline is the very first one. Then you will get more
consistent results in IE and Mozilla.

Jeremy
Dec 16 '06 #5
Gus Richter wrote:
Amer Neely wrote:
>Gus Richter wrote:
>>Amer Neely wrote:
I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but
the results still don't appear any better.

I prefer the HTML 4.01 Strict - as you had it at first. Now you validate
deprecated elements with XHTML 1.0 Transitional.

Your: <br clear="all" / doesn't cut it. See:
<http://www.w3.org/TR/CSS21/visuren.html#propdef-clear>
Is "all" IE proprietory? Although Fx and Opera seem to support it -
don't use it!
I believe it is also deprecated :(
Remove it from where it does no good and add at the end of your doc:
............</p>
<br clear="both" />
</div></div></body></html>

Basically this (per the specs) is what you're probably looking for,
although there needs to be more markup correcting/tweaking and now you
probably have IE6 lack of support to deal with.
This seems to be getting worse. I've now made it 4.01 Strict, and made
the above changes to the page. Now it doesn't validate, but tells me
there is no attribute 'style' for the font tag; element 'font' is
undefined; and there is no attribute "CLEAR".

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 16 '06 #6
Jeremy wrote:
Amer Neely wrote:
>Gus Richter wrote:
>>Amer Neely wrote:
I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but
the results still don't appear any better.

Your left and right columns have a width of 20% plus a horizontal
padding of 15px. Remember, dimensions and padding are additive, so
these elements end up with a total width of 20% + 15px each, while the
margins on your center column only account for the 20%.

The reason it displays as you want in IE is because the document is
going into quirks mode as a result of the XML prologue. Remove that, so
the <!DOCTYPEline is the very first one. Then you will get more
consistent results in IE and Mozilla.

Jeremy
I've re-done the width definitions with your advice in mind and have
come up with something I can live with, but as noted in my reply to Gus
Richter it no longer validates.

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 16 '06 #7
Rik
Amer Neely wrote:
This seems to be getting worse. I've now made it 4.01 Strict, and made
the above changes to the page. Now it doesn't validate, but tells me
there is no attribute 'style' for the font tag; element 'font' is
undefined;
<fontis deprecated. Use a more meaningfull tag, or failing to find one,
use <span>.
and there is no attribute "CLEAR".
Indeed, it's <[TAG] style="clear:both;">.
--
Rik Wasmus
Dec 16 '06 #8
Rik wrote:
Amer Neely wrote:
>This seems to be getting worse. I've now made it 4.01 Strict, and made
the above changes to the page. Now it doesn't validate, but tells me
there is no attribute 'style' for the font tag; element 'font' is
undefined;

<fontis deprecated. Use a more meaningfull tag, or failing to find one,
use <span>.
>and there is no attribute "CLEAR".

Indeed, it's <[TAG] style="clear:both;">.
Good grief, I spend too much time in perl and have lost touch with the
HTML side of things.

The page now validates for both HTML 4.01 Strict and CSS, and more or
less renders the way I hoped. But it still looks different in SM and IE.

Thanks for the input.

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 16 '06 #9
Jeremy wrote:
Amer Neely wrote:
>Gus Richter wrote:
>>Amer Neely wrote:
I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but
the results still don't appear any better.

Your left and right columns have a width of 20% plus a horizontal
padding of 15px. Remember, dimensions and padding are additive, so
these elements end up with a total width of 20% + 15px each, while the
margins on your center column only account for the 20%.

The reason it displays as you want in IE is because the document is
going into quirks mode as a result of the XML prologue. Remove that, so
the <!DOCTYPEline is the very first one. Then you will get more
consistent results in IE and Mozilla.

Jeremy
Many thanks for your time and input, I've made corrections and now the
page validates both CSS & HTML 401, and looks more less like I want.

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 16 '06 #10
Gus Richter wrote:
Amer Neely wrote:
>I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the outer
DIV correctly. IE displays 'what I want' but then I'm not sure if
that's because I'm doing something right, or found an artifact that
works.

Is SM broken regarding borders, or am I missing something? Can someone
shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>

Well, after making some corrections and reading the docs, and taking
advice from you and others, I've got the page to validate under CSS and
HTML 4.01. It also looks more or less like I want! Bonus :)

Many thanks for your time and input.
--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"
Dec 16 '06 #11
On 2006-12-16, Amer Neely <pe*******@softouch.on.cawrote:
Gus Richter wrote:
>Amer Neely wrote:
>>Gus Richter wrote:
Amer Neely wrote:
I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.
>
View my attempt at http://www.softouch.on.ca/scratch/3-columns.html
>
The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.
>
Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>

Ahh. Thank you. I've got it to validate for CSS and XHTML1 now, but
the results still don't appear any better.

I prefer the HTML 4.01 Strict - as you had it at first. Now you validate
deprecated elements with XHTML 1.0 Transitional.

Your: <br clear="all" / doesn't cut it. See:
<http://www.w3.org/TR/CSS21/visuren.html#propdef-clear>
Is "all" IE proprietory? Although Fx and Opera seem to support it -
don't use it!

I believe it is also deprecated :(
>Remove it from where it does no good and add at the end of your doc:
............</p>
<br clear="both" />
</div></div></body></html>
clear is a deprecated HTML attribute, that only applies to <br>, and the
value is "left", "right", or "all". This is in the HTML standard.

There is also a CSS property called "clear" whose value is "left",
"right" or "both".

So <br clear="all"is OK, if deprecated.

<br style="clear: both"on the other hand is a greyish area. According
to the CSS 2.1 default stylesheet, <bris display: inline, but the
clear property only applies to block-level elements. So setting
clear:both on a <brshould do nothing, although it may accidentally
work the same as clear="all" in some UAs depending on how they're
implemented.

In this case better to put clear: both on the next block-level element,
and lose the <braltogether.
Dec 16 '06 #12
Amer Neely wrote:
Gus Richter wrote:
>Amer Neely wrote:
>>I'm trying to nail down a 3-column layout but there is a slight
discrepancy in how IE 6 and Seamonkey renders a border.

View my attempt at http://www.softouch.on.ca/scratch/3-columns.html

The problem is that SM does not seem to render the border in the
outer DIV correctly. IE displays 'what I want' but then I'm not sure
if that's because I'm doing something right, or found an artifact
that works.

Is SM broken regarding borders, or am I missing something? Can
someone shed some light please?

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.softouch.on.c a%2Fscratch%2F3-columns.html>


Well, after making some corrections and reading the docs, and taking
advice from you and others, I've got the page to validate under CSS and
HTML 4.01. It also looks more or less like I want! Bonus :)

Many thanks for your time and input.
I think you will have more success if you change the structure of your
document somewhat.

Change the center column back to 20% left and right margins. Change the
left and right columns back to 20% width, but remove the padding on
these divs. Place another div within each of the left and right
columns, that has the padding and border that you want. Remove the
border from the center column (remember, border is also additive).

Removing borders and padding from the outermost element and adding an
additional element inside it to contain them is the only way to get
exact percentage widths to match up, if you want borders and padding.

See example:
http://www.duckwizard.com/ciwas/3-columns.html

One more note: 100% height is never going to work the way you expect in
IE. It is pretty much useless unless you have a defined height on the
master div. You'll probably have to find a new method of achieving that
effect (where all columns are the same height, which is high enough to
accommodate whatever content the tallest column has).

Jeremy
Dec 18 '06 #13

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

Similar topics

33
by: Thomas Mlynarczyk | last post by:
Hi, I'm looking for a way to put a 1px solid border around the image in this link: <a href="some.html"><img src="some.gif"></a> Well, that, by itself, is simple. However, I would like to have a...
4
by: David Ehmer | last post by:
I have some buttons I'm working on at this address http://www.boatingaccessories.com.au/test3.htm In NS7, Mozilla and Opera, the borders don't render. IE6 displays as intended. Appreciate...
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...
19
by: Eva | last post by:
Hi, I'm really really really new to javascripts and so i couldn't really comprehend thoroughly on the the previous posts regarding this issue. Anyways, I'm setting up a picture album site....
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: deko | last post by:
I'm trying to get a 1px border around the content section of this page: http://www.clearpointsystems.com As you will see, I have a header/nav bar (looks correct), but the border around the...
2
by: jonathandowns | last post by:
i'm trying to put a css border around this box, and it's not working properly in safari and firefox (works fine in IE). can anyone help me fix this? here is a grab so you can see the problem: ...
0
by: silco | last post by:
Hi Everyone.. hope you can help! I have a IE6 border bug, most of the common fixes tell me to use relative on my container divs. This fixed some problems but now I have a left border problem...
34
by: aljamala | last post by:
I keep getting this error for the given code region (it actually highlights the line with the body tag): line 42 column 1 - Warning: <trisn't allowed in <bodyelements </head> <body...
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:
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.