css and mootools navigation

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • tom-over
    Contao-Nutzer
    • 28.06.2010
    • 29

    #1

    css and mootools navigation

    Hello,
    I have a problem with my css and navigation of my site
    I can not place the menu at the bottom of the header
    can you help me?
    my navigation
    thank you

    HTML-Code:
    .mod_customnav2 .mod_customnav2 block li{
    	line-height:26px;
       margin-top: 0px;
       margin-right: 15px;
       margin-bottom: 0px;
       margin-left: 15px;
    }
    .mod_customnav2 li{
    line-height:26px;
       float:left;
       list-style:none;
    }
    *html .mod_customnav2 ul{height:1px;}
    .mod_customnav2,.mod_customnav2 *{
       margin:0;
       padding:0;
       list-style: none;
    }
    
    .nosubmenu .active {
        background-color: rgba(255, 255, 255, 0.5);
       color:#000
    }
    
    .submenu .active {
       background-color: rgba(0, 0, 0, 0.8);
       color:#fff;
    }
    
    .mod_customnav2 li a,.mod_customnav2 li p{
    	text-align:center;
    	line-height:26px;
    	width:110px;
    	display:block;
    	color:#000;
    	padding-top: 0;
    	padding-right: 13px;
    	padding-bottom: 0;
    	padding-left: 13px;
    	margin-top: 1px;
    	margin-bottom: 1px;
    }
    .mod_customnav2 li a:hover{
       text-decoration:none;
       background-color: rgba(255, 255, 255, 0.5);
       color:#000;
    }
    
    .mod_customnav2 .submenu a li{
    	line-height:26px;
    	display:block;
    	color:#fff;
    	padding-top: 0;
    	padding-right: 13px;
    	padding-bottom: 0;
    	padding-left: 13px;
    	margin-top: 1px;
    }
    .mod_customnav2 .submenu li a:hover{
       text-decoration:none;
       margin:0;
       padding:0;
       width:180px;
       background-color: rgba(0, 0, 0, 0.8);
       color: #fff;
    }
    *html .mod_customnav2 li a:hover{
       display:block;
       background-color: rgba(0, 0, 0, 0.8);
       text-decoration:none;
       color:#fff;
    }
    .mod_customnav2 li ul{
       left:-999em;
       width:180px;
       position:absolute;
       color:#fff;
    }
    .mod_customnav2 li:hover ul,.mod_customnav2 li.sfhover ul{
       left:auto;
       position:absolute;
       display:block;
       color:#fff;
       background-color: rgba(0, 0, 0, 0.5);
       z-index:99999 !important;
    }
    .mod_customnav2 li ul li{
       display:block !important;
       width:210px;
          color:#fff;
    }
    
    .mod_customnav2 .invisible {
       display: none;
    }
    Zuletzt geändert von tom-over; 28.06.2010, 11:50.
  • Nina
    Contao-Urgestein
    • 04.06.2009
    • 4755

    #2
    in style.css

    div#header
    -> add: position:relative;

    div.mod_customnav2
    -> delete: margin-top: 70px;
    -> add: position: absolute;
    -> add: bottom: 0;

    By the way, there is also an international Contao-community and even a french Contao-community (new registration in both cases required).

    Kommentar

    • tom-over
      Contao-Nutzer
      • 28.06.2010
      • 29

      #3
      thank you for your quick response ! !
      Property "position: absolute;" are a problem to display the submenu
      the submenu disappears !!

      PS : the international Contao-community have a bug 404 error to submit a NEW TOPIC...
      and the french forum don't find the solution to my probleme my topic
      Zuletzt geändert von tom-over; 28.06.2010, 12:27.

      Kommentar

      • tom-over
        Contao-Nutzer
        • 28.06.2010
        • 29

        #4
        I have change my css and I have other probleme with the submenu...
        HTML-Code:
        .mod_customnav2{
           position:absolute;
            top:83px;
            left: 0px;
           width:960px;
            border: 0px solid #000;
            z-index: 100;
           padding:0;
           font-weight:bold;
           text-align: center; 
        }
        .mod_customnav2 .level_1 li
        {
           display: block;
           float: left;
           width: 120px;
           margin: 0;
           padding: 0;
           border: 0;
        }
        .mod_customnav2 .level_1 li a:link, .mod_customnav2 li a:visited
        {
           display: block;
           color: #000;
           margin: 0;
           height:23px;
           padding: 4px 8px;
           border-right: 0px solid #fff;
           background: transparent url(fondTR.png) repeat;
           text-decoration: none;
        }
        .mod_customnav2 .level_1 li a:hover { background-color: rgba(255, 255, 255, 0.5); }
        
        
        .mod_customnav2 .level_1 p
        {
           display: block;
           height:22px;
           color: #000;
           background-color: rgba(255, 255, 255, 0.5);
           margin: 0;
           padding: 4px 8px;
           font-weight:bold;
           border-right: 0px solid #fff;
           text-decoration: none;
        }
        
        
        .mod_customnav2 .level_2
        {
           display:none;
           list-style-type: none;
           margin: 0;
           padding: 0;
           border: 0;
           width: 180px;
           border: 0px solid #000;
        }
        .mod_customnav2 .level_2 li
        {
           float: none;
           display: block;
           margin: 0;
           padding: 1px 8px 29px;
           width: 180px;
           height:2px;
           border-bottom: 0px solid transparent;
           border-right: 0px solid transparent;
        }
        .mod_customnav2 .level_2 li a:link, .mod_customnav2 .level_2 li a:visited
        {
           display: block;
           color: #FFF;
           margin: 0;
           border: 0;
           text-decoration: none;
           background-color: rgba(0, 0, 0, 0.5);
        }
        .mod_customnav2 .level_2 li a:hover
        {
           background-color: rgba(0, 0, 0, 0.8);
        }
        .mod_customnav2 .level_2 p
        {
           display: block;
           visibility:hidden;
           height:22px;
           width:180px;
           color: #fff;
           background-color: rgba(0, 0, 0, 0.8);
           margin: 0;
           padding: 3px 0px;
           font-weight:bold;
           border-right: 0px solid #fff;
           text-decoration: none;
        }
        .mod_customnav2 li:hover > .level_2 { display: block; }
        
        .mod_customnav2 li.trail .level_2{}

        Kommentar

        • tom-over
          Contao-Nutzer
          • 28.06.2010
          • 29

          #5
          now I have a probleme with IE
          Could you help me please ?
          Zuletzt geändert von tom-over; 28.06.2010, 15:53.

          Kommentar

          • psren
            Contao-Urgestein
            • 07.04.2010
            • 2733

            #6
            which kind of problem?

            some ie versions don't support pseudoclass :hover on list elements.
            google for "ie hover everything" sorry but i don't know the link now.
            this will add a behaviour so ie supports li:hover.

            if this is the solution to your problem depends on which version you're using (and if this matches your problem, add detailed description please)

            Wenn ich euch helfen konnte könnt ihr euch gerne mal
            meine Amazon Wunschliste anschauen. Dankeschön.

            Kommentar

            Lädt...