473,394 Members | 1,946 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 color and style differences across browsers

Here are two screen captures: http://www.warrensarle.com/borders.gif
of this one web page: http://www.warrensarle.com/borders.php
in IE and Firefox. A border-style of solid is rendered the same in both
browsers. Border-styles of outset and ridge produce radically different
colors (grays in this case; saturated colors produce even more dramatic
differences) in the two browsers. In particular, a border color of
#000000 is rendered as black in IE but as light and medium gray in
Firefox. Does this problem exist in other non-IE browsers?

I have another web page where the border colors are specified via
a complicated interaction with the user. I need for darker values of
border-color to render darker than lighter values, as happens in IE
and as most users would expect. Are there any CSS options to get
border colors to render in a reasonable way with outset and ridge
styles in non-IE browsers?
Apr 19 '06 #1
8 3867
"Warren Sarle" <sa****@unx.sas.com> wrote:
Here are two screen captures: http://www.warrensarle.com/borders.gif
of this one web page: http://www.warrensarle.com/borders.php
in IE and Firefox. A border-style of solid is rendered the same in both
browsers. Border-styles of outset and ridge produce radically different
colors (grays in this case; saturated colors produce even more dramatic
differences) in the two browsers. In particular, a border color of
#000000 is rendered as black in IE but as light and medium gray in
Firefox. Does this problem exist in other non-IE browsers?


The CSS spec does not stipulate how browsers should generate gradients
that are used for inset and outset borders. Browsers use their own
individual routines to do this, often dependent on the background colour
that the border is painted on.

--
Spartanicus
Apr 19 '06 #2
To further the education of mankind, "Warren Sarle" <sa****@unx.sas.com>
vouchsafed:
Are there any CSS options to get
border colors to render in a reasonable way with outset and ridge
styles in non-IE browsers?


What you're really asking is "...in the _same_ way", and the answer is no.

--
Neredbojias
Infinity can have limits.
Apr 19 '06 #3

In article <Xn**********************************@208.49.80.25 1>,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> writes:
To further the education of mankind, "Warren Sarle" <sa****@unx.sas.com>
vouchsafed:
Are there any CSS options to get
border colors to render in a reasonable way with outset and ridge
styles in non-IE browsers?


What you're really asking is "...in the _same_ way", and the answer is no.


No, I did NOT ask for "...in the _same_ way".
It would be reasonable for the rendered color to be a monotone
function of the specified color.
It is not reasonable for #000000 to be rendered as light gray.

--

Warren S. Sarle SAS Institute Inc. The opinions expressed here
sa****@unx.sas.com SAS Campus Drive are mine and not necessarily
(919) 677-8000 Cary, NC 27513, USA those of SAS Institute.
Apr 19 '06 #4
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:

In article <Xn**********************************@208.49.80.25 1>,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html>
writes:
To further the education of mankind, "Warren Sarle"
<sa****@unx.sas.com> vouchsafed:
> Are there any CSS options to get
> border colors to render in a reasonable way with outset and ridge
> styles in non-IE browsers?


What you're really asking is "...in the _same_ way", and the answer
is no.


No, I did NOT ask for "...in the _same_ way".
It would be reasonable for the rendered color to be a monotone
function of the specified color.
It is not reasonable for #000000 to be rendered as light gray.


Why?

Apparently it is more reasonable to Microsoft to subtract something like
x40 from the base color for the inset color in 'ridge'. In the middle
lumina ranges, this could arguably be more appropriate than _beginning_
with a x00-xa0 range as Netscape does. However, in the lower lumina
ranges, IE shows no dimension at all, so how reasonable is that?

--
Neredbojias
Infinity can have limits.
Apr 19 '06 #5

In article <Xn**********************************@208.49.80.25 1>,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> writes:
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:
...
It is not reasonable for #000000 to be rendered as light gray.


Why?


If I wanted a light gray border, I would have asked for
a light gray border.
--

Warren S. Sarle SAS Institute Inc. The opinions expressed here
sa****@unx.sas.com SAS Campus Drive are mine and not necessarily
(919) 677-8000 Cary, NC 27513, USA those of SAS Institute.
Apr 21 '06 #6
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:

In article <Xn**********************************@208.49.80.25 1>,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> writes:
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:
> ...
> It is not reasonable for #000000 to be rendered as light gray.


Why?


If I wanted a light gray border, I would have asked for
a light gray border.


Well, I don't actually disagree with you, but in answer to your original
question, I know of no way to get Mozilla, etc., to change its default
behavior in this area.

A sort-of makeshift method I've used before is to incorporate extra padding
and solid-border as a "unity", but this is pretty rudimentary at best.

--
Neredbojias
Infinity has its limits.
Apr 21 '06 #7

In article <Xn*********************************@208.49.80.251 >,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> writes:
...
Well, I don't actually disagree with you, but in answer to your original
question, I know of no way to get Mozilla, etc., to change its default
behavior in this area.

A sort-of makeshift method I've used before is to incorporate extra padding
and solid-border as a "unity", but this is pretty rudimentary at best.


Thank you for a helpful response.

What I'm doing now is using {border-style: solid}, putting another
div around it with {border-style: solid} again, and setting different
colors on various edges. It's a nuisance, but in this particular
application, the border colors are an important cue.

--

Warren S. Sarle SAS Institute Inc. The opinions expressed here
sa****@unx.sas.com SAS Campus Drive are mine and not necessarily
(919) 677-8000 Cary, NC 27513, USA those of SAS Institute.
Apr 24 '06 #8
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:

In article <Xn*********************************@208.49.80.251 >,
Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html>
writes:
...
Well, I don't actually disagree with you, but in answer to your
original question, I know of no way to get Mozilla, etc., to change
its default behavior in this area.

A sort-of makeshift method I've used before is to incorporate extra
padding and solid-border as a "unity", but this is pretty rudimentary
at best.


Thank you for a helpful response.

What I'm doing now is using {border-style: solid}, putting another
div around it with {border-style: solid} again, and setting different
colors on various edges. It's a nuisance, but in this particular
application, the border colors are an important cue.


Sure. I can't think of any better way to get "multi-colored" borders.
Maybe I'll try that on my next page, just for fun.

--
Neredbojias
Infinity has its limits.
Apr 24 '06 #9

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

Similar topics

5
by: Headless | last post by:
The following code renders a visible border around the hyperlinked image using the UA's default colours for links in IE and Moz: a img{border-width:1px} <a href="foobar.html"><img...
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...
4
by: Christopher Benson-Manica | last post by:
Consider the following markup... <html> <head> <style> table.foo td { width: 100%%; border: 1px solid #000000; } table.button td { width: 100%%; border: 5px outset; background-color: #c0c0c0;...
3
by: ireneatngs | last post by:
Hi, I have example html below which contains a couple of hidden divs. However, some of the table borders within these hidden divs are actually displayed when they should not be. In my...
3
by: effendi | last post by:
Hi Can any tell me what is the javascript equivalent of CSS border? I would like to change the border of my cell when it is set on focus. I have tried onFocus="style.border='3px'" but it is not...
21
by: Viken Karaguesian | last post by:
Hello all, I'm having a weird design issue with IE. The bottom borders on two of my div's stop 1px or 2px short of the right side of the div. In Mozzilla and Opera, these borders go completely...
4
by: eomer | last post by:
I would like my table header to have a border on the bottom. What I have written works in Mozilla (1.7.12) but not IE (6). I have included the snippet of html and the snippets of CSS. Any...
1
by: VincentCorp | last post by:
I have a td element in my html file: <td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top"> If I put inside the HTML file it works fine but I want a central CSS file....
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...
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:
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...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.