Results 1 to 5 of 5

Thread: menu width [RESOLVED]

  1. #1
    New user
    Join Date
    07-29-09.
    Posts
    9

    Default menu width [RESOLVED]

    Hi, I want to set the width of my horizontal menu as the width of the website, because now the menu width depends of the number of item. How can I do?

    The menu css:
    Code:
    div.mod_navigation ul {
      margin:0px;
      padding:0px;
    }
    div.mod_navigation li {
      width:133px;
      margin:0px;
      padding:0px;
      text-align:center;
      list-style-type:none;
      float:left;
    }
    div.mod_navigation a, div.mod_navigation p {
      font-weight:bold;
      font-size:11px;
      color:#ffffff;
    }
    div.mod_navigation a {
      height:25px;
      display:block;
      margin:0px;
      padding:10px 0px 0px 0px;
      text-align:center;
      background-color:#cc0000;
      background-repeat:repeat-x;
      font-weight:bold;
      text-decoration:none;
      font-size:11px;
      color:#ffffff;
    }
    div.mod_navigation a:hover {
      background-color:#b30000;
      background-repeat:repeat-x;
      text-decoration:none;
      color:#ffffff;
    }
    div.mod_navigation p {
      height:30px;
      margin:0px;
      padding:5px 0px 0px 0px;
      text-align:center;
      background-color:#b30000;
      background-repeat:repeat-x;
    }
    a.invisible {
      clear:both;
    }
    
    li.active{
      height:35px;
      display:block;
      margin:0px;
      padding:5px 0px 0px 0px;
      text-align:center;
      background-color:#cc0000;
      background-repeat:repeat-x;
      font-weight:bold;
      text-decoration:none;
      font-size:11px;
      color:#ffffff;
      width: auto;
    }
    Thanks!

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: menu width

    Hi pindol,

    Code:
    div.mod_navigation ul.level_1 {
    width: your width;
    }

    cheers
    Antipitch

  3. #3
    New user
    Join Date
    07-29-09.
    Posts
    9

    Default Re: menu width

    Thanks, I'm sorry but it doesn't work.

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: menu width

    Then you have other/ conflicting values somewhere in your CSS or your frontend output is buggy (if you want to post it here). By default the ul would expand to 100% width of its containing element (div.mod_navigation), anyway.

  5. #5
    New user
    Join Date
    07-29-09.
    Posts
    9

    Default Re: menu width

    ok now it work, I don't know why :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: .... Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •