God aften, herinde!Jeg har et lille problem med en navigations menu som ikke gider fungere i firefox hvilket undre mig lidt da den virker fint i Chrome og safari.. Den gider ikke "folde sig ud" når jeg klikker på den i firefox.. Jeg har vedlagt et link, css dokumentet og index.html.
Link:
Firefox rod.. ;D- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- <!-- Sprog -->
- <html lang="en">
- <head>
-
- <!-- Title -->
- <title>Placeholder text</title>
-
- <!-- Metatags -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="description" content="MLS-Design Admin">
- <meta name="generator" content="Mlsadmin http://mlsdesign.dk/">
- <meta name="author" content="Mads Lind">
-
- <!-- Stylesheet -->
- <link rel="stylesheet" href="stylesheet/admin.css" type="text/css" media="screen">
- <link rel="stylesheet" href="stylesheet/font.css" type="text/css" media="screen">
-
- <!-- Midlertidig Stylesheet -->
- <link rel="stylesheet" media="all" href="stylesheet/dropdown/dropmenu.css" />
- <!-- !! -->
-
- <!-- MidlertidigScript -->
- <script src="stylesheet/dropdown/drop3.js"></script>
- <!-- !! -->
-
- </head>
- <body>
-
- <div class="header">
-
- <div class="navn">
- <h1><span>Placeholder text…</span></h1>
- </div>
-
- <div class="logud">
- <h2><span><a href="#">Log ud</a></span></h2>
- </div>
-
- <div class="hilsen">
-
- <!-- Hilsen generator -->
- <h2><span><SCRIPT LANGUAGE="JavaScript">
- d=new Date();t=d.getHours();
- if(t>=0 && t<=6) s="Hej, ";
- if(t>=6 && t<=9) s="God morgen, ";
- if(t>=9 && t<=11) s="God formiddag, ";
- if(t>=11 && t<=13) s="God middag, ";
- if(t>=13 && t<=16) s="Goddag, ";
- if(t>=16 && t<=19) s="God eftermiddag, ";
- if(t>=19 && t<=24) s="God aften, ";
- document.writeln("" + s + "");
- </SCRIPT></span> Navn!</h2></div>
- </div>
-
- <div class="menu">
-
- <!-- navigation -->
- <section id="search-facets" class="secondary" role="complementary">
- <ul class="facets island pjax-trigger">
- <li id="category-facets" class="facet">
- <h3>Dashbord</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Besøg</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Demografi</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Browser</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Trafikkilde</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Indstillinger</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Generalt</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Virksomheden</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Bruger</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Oversigt</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Tilføj</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Rediger</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Fjern</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Billeder</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Galleri</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Upload</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Film</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Galleri</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Upload</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Aktive sider</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Opret side</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Ændre side</a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- Slet side</a>
- </li>
- </ul>
- <li id="tag-facets" class="facet">
- <h3>Nyheder</h3>
- <ul class="facet-group">
- <li class="selected">
- <a href="#"
- data-params="#"></a>
- </li>
- <li>
- <a href="#"
- data-params="#">
- MLS Design</a>
- </li>
- </ul>
- </ul>
- </section>
- <!-- !! -->
-
- <!-- Midlertidig Script -->
- <script src="stylesheet/dropdown/drop2.js"></script>
- <script src="stylesheet/dropdown/drop1.js"></script>
- <!-- !! -->
-
- </div>
- <div class="wrapper">
- <div class="content"></div>
- </div>
- <div class="footer">
- <div class="tak"><h2><span>Placeholder text..</span></h2></div>
- <div class="version"><h2><span>Placeholder text..</span></h2></div>
-
- </div>
- </body>
- </html>
CSS:
- /* Stylesheet over elementer på s1den.
- Udarbejdet af Mads Lind, MLS Design */
-
- body {
- text-align:center;
- background-color: #f9f9f9;
- }
-
- .header {
- z-index:2;
- position:fixed;
- text-align:left;
- top:0px;
- left:0px;
- height:40px;
- width:100%;
- min-width:900px;
- background-color: #464646;
- }
-
- .header .navn {
- float:left;
- height:30px;
- width:auto;
- padding-left:5px;
- margin-left:27px;
- padding:3px;
-
- }
-
- .header .hilsen {
- float:right;
- height:100%;
- width:auto;
- padding-right:10px;
- padding-top:3px;
- }
-
- .header .logud {
- float:right;
- height:20px;
- width:auto;
- padding-top:3px;
- margin-left:7px;
- margin-right:15px;
- }
-
- .wrapper {
- margin-top:40px;
- padding:10px;
- padding-right:35px;
- margin-left:220px;
- margin-bottom:100px;
- }
-
- .menu {
- position:absolute;
- left:10px;
- float:left;
- text-align:left;
- margin-top:30px;
- margin-bottom:100px;
- margin-left:20px;
- margin-right:10px;
- height:400px;
- width:182px;
- background-color:none;
- }
-
- .content {
- float:left;
- margin-top:20px;
- margin-bottom:75px;
- min-height:300px;
- height:auto;
- width:100%;
- min-width:880px;
- background-color:#fbfbfb;
- border: 2px solid #e2e3ed;
- -moz-border-radius: 5px;
- border-radius: 5px;
- }
-
- .footer {
- z-index:1;
- position:fixed;
- text-align:left;
- bottom:0px;
- left:0px;
- height:40px;
- width:100%;
- min-width:900px;
- margin:0px;
- background-color: #464646;
-
- }
-
- .footer .tak {
- float:left;
- height:20px;
- width:auto;
- padding-top:5px;
- margin-right:7px;
- margin-left:15px;
- }
-
- .footer .version {
- float:right;
- height:100%;
- width:auto;
- padding-right:15px;
- padding-top:3px;
- }
dropmenu
- ol,ul{
- list-style:none;
- margin:0;
- padding:0;
- border:0;
- }
-
- b,strong{
- font-weight:700;
- }
-
- li a{
- font-size:14px;
- text-decoration:none;
- color:#447bc4;
- line-height:190%;
- padding-left:3px;
- font-family:Helvetica, Arial, "Lucida Grande", "Lucida Sans", Tahoma, Verdana, sans-serif;
- }
-
- .island{
- background:#FCFDFE;
- background-image:-webkit-gradient(linear,left bottom,left top,from( #fcfdfe),to( #f4f8fc));
- background-image:linear-gradient( #fcfdfe, #f4f8fc);
- background-image:-moz-linear-gradient( #fcfdfe, #f4f8fc);
- background-image:-webkit-linear-gradient( #fcfdfe, #f4f8fc);
- border:1px solid #c9ddf2;
- -webkit-border-radius:5px;
- -moz-border-radius:5px;
- border-radius:5px;
- box-shadow:0 -2px 0 rgba(204,223,243,.3) inset,0 0 1px rgba(0,0,0,.1);
- -moz-box-shadow:0 -2px 0 rgba(204,223,243,.3) inset,0 0 1px rgba(0,0,0,.1);
- -webkit-box-shadow:0 -2px 0 rgba(204,223,243,.3) inset,0 0 1px rgba(0,0,0,.1);
- display:block;
- float:left;
- margin-bottom:15px;
- padding:14px 14px 16px;
- }
-
- .island>section{
- border-bottom:1px solid #C9DDF2;
- border-top:1px solid transparent;
- margin:0 -14px;
- padding:14px;
- float:left;
- width:100%;
- }
-
- .island>section:first-child{
- border-top:0;
- padding-top:0;
- }
-
- .island>section:last-child{
- border-bottom:0;
- }
-
- header+.island{
- margin-top:1em;
- }
-
- #standalone{
- float:none;
- margin:6em auto 0;
- width:500px;
- }
-
- .primary{
- margin-left:210px;
- position:relative;
- }
-
- .primary .primary{
- margin-right:210px;
- margin-left:0;
- }
-
- .primary .secondary{
- float:right;
- }
-
- .primary .island.hero{
- width:720px;
- position:relative;
- }
-
- .html-rtl.gutter .primary{
- margin-left:210px;
- margin-right:0;
- }
-
- .html-rtl.gutter .primary.full{
- margin-left:0;
- }
-
- .full{
- -webkit-box-sizing:border-box;
- -moz-box-sizing:border-box;
- box-sizing:border-box;
- float:none;
- margin:auto 0!important;
- width:100%;
- }
-
- .secondary{
- float:left;
- width:180px;
- }
-
- .secondary li{
- border:1px solid rgba(0,0,0,.19999999999999996);
- border-width:0 0 1px 0;
- position:relative;
- }
-
- .secondary li:first-child{
- border-top-width:1px;
- }
-
- .secondary li a.selected{
- color:#333;
- font-weight:700;
- }
-
- .secondary li a.selected,.secondary li a:hover{
- background:#ECF5FE;
- -moz-border-radius: 5px;
- border-radius: 5px;
- padding-left:3px;
-
- }
-
- #search-facets h2,#search-facets h3,#search-facets p{
- font:italic 15px/1 Georgia,serif;
- }
-
- #search-facets h3,#search-facets p{
- color:#666;
- }
-
- #search-facets h2,#search-facets .facets{
- margin-bottom:8px;
- }
-
- #search-facets h2{
- line-height:29px;
- margin-bottom:16px;
- min-height:29px;
- padding:0;
- text-transform:inherit;
- }
-
- #search-facets h3{
- font-size:18px;
- margin-bottom:4px;
- line-height:130%;
- font-family: Georgia, serif;
- }
-
- #search-facets p{
- font-size:14px;
- padding:0 11px;
- text-align:center;
- }
-
- #search-facets p b{
- font-weight:none;
- }
-
- #search-facets ul{
- margin:0;
- }
-
- /* fjerne linje */
- #search-facets li{
- border:0;
- }
-
- /* Bredden */
- #search-facets .facets{
- background:none rgba(255,255,255,.4);
- border-color:#D7D9E8;
- padding:0;
- width:100%;
- }
-
- /* Højden */
- #search-facets .facets .facet{
- border-top:1px dotted #D7D9E8;
- padding:10px;
- }
-
- /* Pilene */
- #search-facets .facets .facet:after{
- color:#ccc;
- content:"\0BB";
- font:normal 17px/14px Georgia,serif;
- position:absolute;
- right:10px;
- top:15px;
- }
-
- /* Musens markør */
- #search-facets .facets .facet:hover{
- cursor:pointer;
- }
-
- /* Farven på pilen */
- #search-facets .facets .facet:hover:after{
- color:#666;
- }
-
- /* Størrelsen på boxen */
- #search-facets .facets .facet>ul{
- max-height:250px;
- overflow-y:auto;
- }
-
- /* Den gemmer underpunkterne */
- #search-facets .facets .facet li a{
- display:none;
- }
-
- /* Den tekst som kommer frem */
- #search-facets .facets .facet li.selected>a{
- font-weight:700;
- color:#d16b00;
- display:block;
- }
-
- #search-facets .facets .facet li.selected>a:hover{
- text-decoration:none;
- }
-
- /* Ændre retning på pilen */
- #search-facets .facets .facet.active:after{
- -webkit-transform:rotate(90deg);
- -moz-transform:rotate(90deg);
- -ms-transform:rotate(90deg);
- -o-transform:rotate(90deg);
- transform:rotate(90deg);
- }
-
- /* Den får teksten til at komme frem */
- #search-facets .facets .facet.active li a{
- display:block;
- }
-
- #search-facets .facets .facet.active:hover li a{
- pointer-events:auto;
- }
-
- #search-facets .facets .facet.active ul+ul{
- margin-top:1em;
- }
-
- .html-rtl #search-facets li ul{
- padding:0 12px 0 0;
- }
-
- .html-rtl #search-facets .facets .facet:after{
- right:auto;
- left:10px;
- }
-
- .html-rtl #search-facets .facets .facet.active:after{
- -webkit-transform:rotate(-90deg);
- -moz-transform:rotate(-90deg);
- -ms-transform:rotate(-90deg);
- -o-transform:rotate(-90deg);
- transform:rotate(-90deg);
- }
-
- .results{
- position:relative;
- }
Indlæg senest redigeret d. 07.02.2012 00:15 af Bruger #16983