473,785 Members | 2,831 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 3888
"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
6264
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
3073
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
6486
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
58253
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
2146
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
81859
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
2032
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
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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
9949
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
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
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.