473,886 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3894
"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.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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.8 0.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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.8 0.251>,
Neredbojias <http://www.neredbojias .com/fliam.php?cat=a lt.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
6268
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 src="foobar.jpg" alt="foobar"></a> but not in Opera. I imagine that border colour normally defaults to transparent, but
4
3082
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 any insights. David
4
6491
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; } </style></head> <body> <table class="button">
3
1068
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 example, I have comments indicating that if I remove the 'border-collapse' attribute for two of the tables within the hidden divs, my problem is fixed.
3
58257
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 working. Thanks
21
2160
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 to the end. It's almost like there's a 1px padding on the right side, but all my padding is set to zero. I'm not sure if the problem is in my css or in my html. You can see an example here: www.sayatnova.com/home_5.htm...
4
81873
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 suggestions would be appreciated. Thank you. http://www1.esc.edu/personalstu/fhartnet/books.html <tr class="lightblue">
1
2036
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. <Style.tableborder{border-style: groove;border: 2;border-color: #FF0000;}</style>
0
9799
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10770
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10872
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7139
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5808
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6010
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4627
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4235
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.