Forum Moderators: open

Message Too Old, No Replies

IE problem using Nifty Corners

Very Frustrated!

         

spoons10

5:20 pm on Feb 23, 2008 (gmt 0)

10+ Year Member



If there is anyone out there that can help me with this I will be soo thankful. I am relatively new to CSS most of my experience is in Databases. I am trying to create a site for my college rugby team and my design is to have horizontal tabs with a horiz sub menu for the selected tab. Furthermore, my personal preferance is to have curved corners, and to keep bandwidth down I decided to use Alessandro Fulciniti's Nifty Corners Cube (http://www.html.it/articoli/niftycube/index.html).

I was developing in FF and everything was moving forward and looking good, THEN I decided to double check my things in IE and BAM everything is messed up. I have deduced that it has something to do with the CSS and the rounded corners.

I only hope that someone is out there that can help me. Below is the simplified CSS file and the HTML file.

The HTML will look fine in FF and IE (v6) but when I execute the Nifty function (which curves the corners) things go haywire.

I want paste the Nifty code you can just download it from the above url.

Thank you to ANYONE who can shed some light on this.

CSS


/*globalnav*/

BODY {
padding: 10px 40px;
margin:0;
font-family: arial, geneva, lucida, sans-serif;
}

#globalnav {
position:relative;
float:left;
width:100%;
padding:0 0 1.75em 1em;
margin:0;
list-style:none;
line-height:1em;
}

#globalnav LI.topMenu, #globalnav LI.topSelected {
float:left;
margin:0;
padding:0px 0px 0px 10px;
}

#globalnav LI.topSelected {
text-decoration:underline;
}

#globalnav A {
display:block;
color:#444;
text-decoration:none;
font-weight:bold;
background:#ddd;
margin:0;
padding:0.25em 1em;
border-bottom:1px solid #BBB;
}

#globalnav A:hover,
#globalnav A:active,
#globalnav A.here:link,
#globalnav A.here:visited {
background:#bbb;
}

#globalnav A.here:link,
#globalnav A.here:visited {
position:relative;
z-index:102;
}

/*subnav*/

#globalnav UL {
position:absolute;
left:0;
top:1.5em;
float:left;
background:#bbb;
width:100%;
margin:0;
padding:0.25em 0.25em 0.25em 1em;
list-style:none;
border-top:1px solid #fff;
}

#globalnav UL LI {
float:left;
display:block;
margin-top:1px;
}

#globalnav UL A {
background:#bbb;
color:#fff;
display:inline;
margin:0;
padding:0 1em;
border:0
}

#globalnav UL A:hover,
#globalnav UL A:active,
#globalnav UL A.here:link,
#globalnav UL A.here:visited {
color:#444;
}

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<link rel="stylesheet" type="text/css" href="testMenuCSS.css" media="screen"/><link rel="stylesheet" type="text/css" href="niftyCorners.css"/>

<script type="text/javascript" src="niftycube.js"></script>

<script type="text/javascript">
window.onload=function() {
// Nifty("LI.topSelected a", "top transparent");
// Nifty("LI.topMenu a", "top transparent");
}
</script>
</head>

<body>
<ul id="globalnav">
<li class='topMenu'><a href="#">Home</a></li>
<li class='topSelected'><a href="#" class="here">About</a>
<ul>
<li><a href="#">Vision</a></li>
<li><a href="#">Team</a></li>
<li><a href="#">Culture</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#" class="here">History</a></li>
<li><a href="#">Sponsorship</a></li>
</ul>
</li>
<li class='topMenu'><a href="#">News</a></li>
<li class='topMenu'><a href="#">Proof</a></li>
<li class='topMenu'><a href="#">Process</a></li>
<li class='topMenu'><a href="#">Expertise</a></li>
<li class='topMenu'><a href="#">Help</a></li>
</ul>
</body>
</html>

tedster

12:42 am on Feb 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello spoons, and welcome to the forums.

Please describe what "everything is messed up" and "things go haywire" mean. I doubt that many members will want to download scripts and put together their own test page. Please, make it easier for us to help you.

spoons10

1:26 am on Feb 24, 2008 (gmt 0)

10+ Year Member



Yea I figured that my post was a waste of space. It is hard to describe given that my background in css is limited. My guess is I would confuse people more if I tried to explain it rather than them seeing if for themselves. One idea for this site is the ability to add attachments to forum posts, granted it would take space but that is a feature you don't see often on these sites. Sorry I digress,

I guess the problem has something to do with the widths or something. The tabs are made up of <li>s which you can see in the css. I believe that Nifty Corners adds multiple divs to the top and/or bottom in such a way that it gives the impression of a curve (you remember that crap we learned back in 3rd grade, making curved lines with straight ones). Well in IE (6) everything looks like it should BEFORE the Nifty Corners runs, after it seems as though in causes something to go wrong in these LIs as the go from being about 45px wide to the whole screen.

Sorry that is as best as I can do...

mehh

12:19 pm on Feb 24, 2008 (gmt 0)

10+ Year Member



Try uncommenting these lines:
window.onload=function() {
Nifty("LI.topSelected a", "top transparent");
Nifty("LI.topMenu a", "top transparent");
}

spoons10

3:48 pm on Feb 24, 2008 (gmt 0)

10+ Year Member



They are commented because if this functions run then that is when the tab LIs stretch the entire screen. I commented them out so people could copy and past the code and see what I was going after.

Guess I just need to find a Nifty Corners expert :)

agict

2:42 pm on Apr 22, 2008 (gmt 0)

10+ Year Member



I have the same problem, need also expert!