Printable Version of Topic

Click here to view this topic in its original format

Forum 17B _ Développement / OS / Oc / Matos _ Nuked Klan

Posted by: corrado 11/12/2009 - 07:47:43

Bonjour à tous
voici mon souci
sur le thème crack_v1 de nuked klan, dans la bannière supérieur, j'ai voulu intégrer un menu.
Aucun souci, super bien intégrer, mais uniquement sous firefox
Avec IE le reste du thème se retrouve décalé sur la droite:

http://www.cssun.fr/index1.php?file=News

c'est vraiment horrible
j'y est passer la nuit mais pas moyens de trouver d'où cela peut venir

donc si vous pouvez m'aider je vous en remercie d'avance

cordialement

Posted by: dvdmag 11/12/2009 - 09:31:46

Yop

Citation
<link type="text/css" href="/menu/menu_style.css" rel="stylesheet">
1 Failed to load source for: http://www.cssun.fr/menu/menu_style.css
</link>


Il semble que ton fichier de style soit introuvable.
L'adresse que tu a mise pour localiser ce fichier n'est pas la bonne ou le fichier n'est pas au bon endroit.

Posted by: corrado 11/12/2009 - 10:50:28

ben pourtant si huh.gif

voici mon menu_style.css :

Citation
ul.menu {
list-style-type:none;
width:auto;
position:relative;
display:block;
height:33px;
font-size:.6em;
background:url(images/bg.png) repeat-x top center;
font-family:Verdana,Helvetica,Arial,sans-serif;
border:1px solid #000;
margin:0;
padding:0;
}

ul.menu li {
display:block;
float:left;
margin:0;
padding:0;
}

ul.menu li a {
float:left;
color:#A79787;
text-decoration:none;
height:24px;
padding:9px 15px 0;
font-weight:normal;
}

ul.menu li a:hover,.current {
color:#fff;
background:url(images/bg.png) repeat-x top center;
text-decoration:none;
}

ul.menu .current a {
color:#fff;
font-weight:700;
}


/*RED*/
ul.menu.red{
background-color:#B11718;
}
ul.menu.red li a:hover, .menu.red li.current {
background-color:#DE3330;
}



et voici le code htlm convertit en php du menu: (convertit pour être intégrer au thème) :

Citation
echo"<head>"
. "<link rel=\"stylesheet\" href=\"http://www.cssun.fr/themes/CrAk-v1/menu/menu_style.css\" type=\"text/css\" />"
. "<ul class=\"menu red\">"
. " <li class=\"current\"><a href=\"http://www.cssun.fr/index1.php?file=News\" target=\"_self\">ACCUEIL</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Forum\" target=\"_self\">FORUM</a></li>"
. " <li class=\"current\"><a href=\"http://www.cssun.fr/index1.php?file=Defy\" target=\"_self\">NOUS DEFIER</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Recruit\" target=\"_self\">RECRUTEMENT</a></li>"
. "<li><a href=\"http://www.cssun.fr/index1.php?file=charte\" target=\"_self\">NOTRE CHARTE</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Team\" target=\"_self\">LE STAFF</a></li>"
. " <li><a href=\"http://www.cssun.fr/index.php?file=Links\" target=\"_self\">LIENS WEB</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Gallery\" target=\"_self\">GALERIE</a></li>"
. "<li><a href=\"http://www.cssun.fr/index1.php?file=Guestbook\" target=\"_self\">LIVRE D'OR</a></li>"
."";



de plus pourquoi il trouverais le "menu_style.css" avec firefox et pas avec IE???? eek.gif

Posted by: dvdmag 11/12/2009 - 13:14:34

En regardant la source de ta page, on peut y voir un lien:

Citation
<link type="text/css" href="/menu/menu_style.css" rel="stylesheet">


Ton fichier css est référencé plusieurs fois
Il y a plusieurs balise <head> et </head>

Il y a donc une ou des erreurs quelque part dans ton code.

Firefox est beaucoup plus tolérant que IE.....

Remarques:
Tu as construit ton menu dans un div. C'est mieux qu'une table !
Tout le reste du theme est construit en table.
Peut être qu'une table pour ton menu aurait été plus en harmonie avec le reste du code....
Peut être qu'une table aurait été plus tolérante qu'un div....

Posted by: corrado 11/12/2009 - 15:41:07

Je ne sait pas ou je me suis planter
et le passer en table je sait pas comment faire....me suis embraquer dans une histoire encore moi icon_angry.gif

Posted by: corrado 11/12/2009 - 16:23:01

sa y ai c'est bon!!!!
je n'avais tous simplement pas fermer ma liste:

Citation
echo"<head>"
. "<link rel=\"stylesheet\" href=\"http://www.cssun.fr/themes/CrAk-v1/menu/menug_style.css\" type=\"text/css\" />"
. "<ul class=\"menu red\">"
. " <li class=\"current\"><a href=\"http://www.cssun.fr/index1.php?file=News\" target=\"_self\">ACCUEIL</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Forum\" target=\"_self\">FORUM</a></li>"
. " <li class=\"current\"><a href=\"http://www.cssun.fr/index1.php?file=Defy\" target=\"_self\">NOUS DEFIER</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Recruit\" target=\"_self\">RECRUTEMENT</a></li>"
. "<li><a href=\"http://www.cssun.fr/index1.php?file=charte\" target=\"_self\">NOTRE CHARTE</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Team\" target=\"_self\">LE STAFF</a></li>"
. " <li><a href=\"http://www.cssun.fr/index.php?file=Links\" target=\"_self\">LIENS WEB</a></li>"
. " <li><a href=\"http://www.cssun.fr/index1.php?file=Gallery\" target=\"_self\">GALERIE</a></li>"
. "<li><a href=\"http://www.cssun.fr/index1.php?file=Guestbook\" target=\"_self\">LIVRE D'OR</a></li></ul>"
."";


il manquais le "</ul>"

Posted by: dvdmag 11/12/2009 - 16:27:04

Voici donc une erreur primordiale de corrigée, cependant il en reste encore puisque la source comporte toujours plusieurs balises <head> et </head>.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)