473,385 Members | 2,028 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.

Color Matching in IE6

Same page as in my earlier post, which I have found a workaround that is
actually more preferable to the previous attempted solution, however I
now am trying to find an answer to a new question.

http://www.uah.edu/Athletics/index.shtml

http://www.uah.edu/Athletics/style.css

I have created a div block that will, in essence, "extend" the banner as
far as it needs to go (up to 1500px) to accomidate varying screen
resolutions using a background-color element in the CSS.

The color (#336699) matches perfectly in MoScape 1.4/7.1, however using
IE6 the div background-color is a touch lighter than the banner color (a
png graphic file).

Thanks in advance for any ideas.

Mike Anderson
andersms (at) email (dot) uah (dot) edu

Code blocks:

index.shtml:
<div class="bannerextend"></div>
<img class="head"
src="http://www.uah.edu/Athletics/images/general/athhead.png" alt="UAH
Chargers.com">

style.css:
div.bannerextend {
position: absolute;
left: 0px;
right: 1500px;
top: 33px;
bottom: 120px;
width: 100%;
height: 47px;
overflow: hidden;
background-color: #336699;
}
img.head {
position: absolute;
left:-5px;
top:0px;
}
Jul 20 '05 #1
4 5324
Mike Anderson wrote on 02 jul 2003 in
comp.infosystems.www.authoring.stylesheets:
The color (#336699) matches perfectly in MoScape 1.4/7.1, however using
IE6 the div background-color is a touch lighter than the banner color (a
png graphic file).


make a 1x1 gif and use that as repeating background ?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
Evertjan. wrote:
Mike Anderson wrote on 02 jul 2003 in
comp.infosystems.www.authoring.stylesheets:

The color (#336699) matches perfectly in MoScape 1.4/7.1, however using
IE6 the div background-color is a touch lighter than the banner color (a
png graphic file).

make a 1x1 gif and use that as repeating background ?


Yuk. Have you seen how slowly some browsers (NN4) render that?

The issue is with PNG gamma correction. I solved this once, but I forget
how. I think I just told the GIMP not to save any gamma information into
the PNG.

--
Mark.
http://www.tranchant.freeserve.co.uk/

Jul 20 '05 #3
In article <bd**********@eccws12.dearborn.ford.com>,
Mark Tranchant <mt******@ford.com> wrote:
The issue is with PNG gamma correction.
Right. More about this:
http://iki.fi/hsivonen/png-gamma.html
I solved this once, but I forget how.
AFAIK, you can't make PNG colors match CSS colors in all PNG-supporting
browsers at the same time.

Safari is the main problem case now. (If this bothers you, see
http://weblogs.mozillazine.org/hyatt...07.html#003630)
I think I just told the GIMP not to save any gamma information into
the PNG.


Alternatively, pngcrush can be used
pngcrush -d outputdir -rem gAMA -rem cHRM -rem iCCP *.png

--
Henri Sivonen
hs******@iki.fi
http://www.iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 20 '05 #4
Henri Sivonen <hs******@iki.fi> writes:
http://iki.fi/hsivonen/png-gamma.html


You write:

| Given the same RGB values, the colors specified in CSS, HTML, JPEG, or
| GIF have traditionally matched.

It depends on just *how* traditional your POV is. :) This is not true
for 16bit color depth, which probably still applies to about 50% of the
Internet population with a color display. For them, wether or not
document colors match image colors on their screen may depend on OS,
wowser and phase of the moon.

So if consistance matters a lot for you, the gamma correction issue is
pointless in *practical* terms.

--
<!DOCTYPO html>
Jul 20 '05 #5

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

Similar topics

8
by: gsv2com | last post by:
One of my weaknesses has always been pattern matching. Something I definitely need to study up on and maybe you guys can give me a pointer here. I'm looking to remove all of this code and just...
1
by: Henry | last post by:
I have a table that stores a list of zip codes using a varchar column type, and I need to perform some string prefix pattern matching search. Let's say that I have the columns: 94000-1235 94001...
10
by: bpontius | last post by:
The GES Algorithm A Surprisingly Simple Algorithm for Parallel Pattern Matching "Partially because the best algorithms presented in the literature are difficult to understand and to implement,...
1
by: David C. Barber | last post by:
I'm trying to determine if any matching records exist on a LIKE query performing a partial match of last names to a remote back-end database in the most efficient manner possible. LAN Traffic...
1
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded...
1
by: VanKha | last post by:
I write this program for pattern-matching,but it gives wrong result: #include<iostream> #include<conio.h> #include<string.h> using namespace std; main() { char text,pat;...
2
by: santhoshs | last post by:
Hello I am required to parse two files that contain email addresses and figure out a way to get the matching and non-matching email addresses from both the files. I was able to get the matching...
11
by: tech | last post by:
Hi, I need a function to specify a match pattern including using wildcard characters as below to find chars in a std::string. The match pattern can contain the wildcard characters "*" and "?",...
5
by: gentsquash | last post by:
In a setting where I can specify only a JS regular expression, but not the JS code that will use it, I seek a regexp component that matches a string of letters, ignoring case. E.g, for "cat" I'd...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
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: 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: 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
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
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.