Ergebnis 1 bis 6 von 6

Thema: css and mootools navigation

  1. #1
    Contao-Nutzer
    Registriert seit
    28.06.2010.
    Ort
    Frankreich
    Beiträge
    29

    Standard 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;
    }
    Geändert von tom-over (28.06.2010 um 10:50 Uhr)

  2. #2
    Administrator Avatar von Nina
    Registriert seit
    04.06.2009.
    Ort
    Hamburg
    Beiträge
    4.755
    Contao-Projekt unterstützen

    Support Contao

    Standard

    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).

  3. #3
    Contao-Nutzer
    Registriert seit
    28.06.2010.
    Ort
    Frankreich
    Beiträge
    29

    Standard

    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
    Geändert von tom-over (28.06.2010 um 11:27 Uhr)

  4. #4
    Contao-Nutzer
    Registriert seit
    28.06.2010.
    Ort
    Frankreich
    Beiträge
    29

    Standard

    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{}

  5. #5
    Contao-Nutzer
    Registriert seit
    28.06.2010.
    Ort
    Frankreich
    Beiträge
    29

    Standard

    now I have a probleme with IE
    Could you help me please ?
    Geändert von tom-over (28.06.2010 um 14:53 Uhr)

  6. #6
    Contao-Urgestein
    Registriert seit
    07.04.2010.
    Ort
    Stuttgart
    Beiträge
    2.733
    User beschenken
    Wunschliste

    Standard

    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)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Ähnliche Themen

  1. Mootools Navigation Subnavigation
    Von derolli im Forum Allgemeine Inhaltselemente
    Antworten: 1
    Letzter Beitrag: 15.03.2010, 08:57
  2. Mootools Navigation
    Von derolli im Forum Sonstige Erweiterungen
    Antworten: 11
    Letzter Beitrag: 09.03.2010, 16:22
  3. Mootools Navigation mit TL 2.8
    Von lebon im Forum Layout / Templates / Holy Grail
    Antworten: 1
    Letzter Beitrag: 19.02.2010, 11:44

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •