www.webdeveloper.com
Results 1 to 4 of 4

Thread: Spacing in front of lists.

  1. #1
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    225

    Spacing in front of lists.

    This works in IE but not in firefox.

    Code:
    dl, dt, dd, ul, li {
    margin: 0;
    padding: 0;
    color: #959595;
    list-style-type: none;
    list-style-image: none;
    }
    When you hover the menu you can see that the submenu have a spacing in firefox, but not in IE.

    It's for the css menu I'm trying to build.
    You can see it at http://dreamtech.mine.nu/test/
    stylesheet : /test/style.css

    I'm still new to all this and I would really appriciate some help.
    Last edited by Quidam; 05-07-2008 at 02:40 PM. Reason: Typo

  2. #2
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    I didn't look too deeply into this, but I am assuming that Firefox's behaviour is correctly showing what you don't want, and IE is incorrectly showing you wht you DO want.

    To get the drop-down to 'expand' to fill the available space, something like:

    #smenu ul li a {display:block;....}

    might do it. It causes the Selector ("#smenu ul li a") to be 'shrink wrapped'. This takes up all available space, -like it does in IE.

    But like I said, -I just glanced at your code and did not try it..

  3. #3
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    225
    Thanks for your fast reply.
    I found the problem though, and it was my own stupidity.

    the
    Code:
    <-- menu -->
    part in the css file, ****ed up the following code
    Code:
    dl, dt, dd, ul, li {
    margin: 0;
    padding: 0;
    color: #959595;
    list-style-type: none;
    list-style-image: none;
    }
    But thanks again for your fast reply.

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    CSS comments are /* like C */.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles