/    Sign up×
Community /Pin to ProfileBookmark

Help – IE lost Navigation

I am new developer, and I am transitioning from WYSIWYG to real Coding. I just made a navigation bar with CSS that does not work in IE. I have tried searching the forums I I don’t know what to do. My client is ready to start marketing, but IE is killing me.

Please Help.

The UI is [url]www.faith-film-philosophy.com[/url]

Oh, and I did validate the CSS and HTML… so far so good.
-JH

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJul 10.2007 — It's the background-image gradient, isn't it? IE doesn't handle *png 's "alpha transparency", so you instead get this sweet baby-blue color instead.

Add this [I][U]before[/U][/I] the closing "</head>" exactly as shown below:

[CODE]<!--[if lt IE 7]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style="" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src='" + img.src + "', sizingMethod='scale');"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}

}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->[/CODE]
This is an [I]IE-conditional[/I] and it teachs IE how to handle *png (if that is the problem... which is the only difference that I can see between DFx and IE is the burgundy-gradient background image is missing in IE)

checked:

#nav_main {

background-color: #580000;

background-image: url(images/nav_bkgrd_grfk3.[B]png[/B]);

background-repeat: repeat-x;

font-weight: bold;

font-size:12px;

margin:auto;

width: auto;

}[/QUOTE]


Also, -can reduce the code alot. Example here:

#nav_main {

background:#580000 url(images/nav_bkgrd_grfk3.png) repeat-x;

font:12px bold;

margin:auto;

width: auto;

}[/QUOTE]
Possibly even more. Little things, like "bold" can be reduced to "600". "font-weights" can be written as digits in increments of 100 (100, 200, 300, etc., can't do halvies like "550") with "600" being the virtual start of "bold".

"700" or "800" might be cosidered "font-weight:[B]bolder[/B];".

This only saves a few bits, but applied consistantly, the KB-savings do add up. ?
Copy linkTweet thisAlerts:
@AgentWord7authorJul 10.2007 — Thanks for the help - it turns out I needed your script for IE 6 (and less) and also some DIV issue that I am not sure how to explain, but it works.

Oh and thanks for the code reduction tip. I am reducing as much as I can ?
×

Success!

Help @AgentWord7 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...