Hi,
I have found this project by Alessandro Fulciniti called Nifty Corners(http://www.html.it/articoli/nifty/index.html - first version) or Nifty Cube Corners (http://www.html.it/articoli/niftycube/index.html - third version) I am trying to add its ability to create rounded corners without using images to my wordpress blog though obviously its not working - otherwise I probably wouldn't be here.
I think I have identified the problem to be with these lines of code in the niftycube.js file which is included by doing
<script type="text/javascript" src="/niftycube.js"></script>
[code]
function AddCss(){
niftyCss=true;
var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("href","/niftyCorners.css");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);
}
[/code]
the niftycorners.css file contains the following
[code]
b.niftycorners,b.niftyfill{display:block}
b.niftycorners *{display:block;height: 1px;line-height:1px;font-size: 1px;
overflow:hidden;border-style:solid;border-width: 0 1px}
/*normal*/
b.r1{margin: 0 3px;border-width: 0 2px}
b.r2{margin: 0 2px}
b.r3{margin: 0 1px}
b.r4{height: 2px}
b.rb1{margin: 0 8px;border-width:0 2px}
b.rb2{margin: 0 6px;border-width:0 2px}
b.rb3{margin: 0 5px}
b.rb4{margin: 0 4px}
b.rb5{margin: 0 3px}
b.rb6{margin: 0 2px}
b.rb7{margin: 0 1px;height:2px}
b.rb8{margin: 0;height:2px}
b.rs1{margin: 0 1px}
/*transparent inside*/
b.t1{border-width: 0 5px}
b.t2{border-width: 0 3px}
b.t3{border-width: 0 2px}
b.t4{height: 2px}
b.tb1{border-width: 0 10px}
b.tb2{border-width: 0 8px}
b.tb3{border-width: 0 6px}
b.tb4{border-width: 0 5px}
b.tb5{border-width: 0 4px}
b.tb6{border-width: 0 3px}
b.tb7{border-width: 0 2px;height:2px}
b.tb8{border-width: 0 1px;height:2px}
b.ts1{border-width: 0 2px}
[/code]
and is initiated with a javascript function like so ...
[code]
<script type="text/javascript">
window.onload=function(){
Nifty("div#content,div#nav", "same-height");
}
</script>
[/code]
When using firefox and trying to view the niftycorners.css file firefox / wordpress can't find it ... though it can when I'm not integrating it into worpress. Is there a way to fix this so that wordpress can find this file?
Thank you.