Results 1 to 6 of 6

Thread: problem with CSS styling on sub menu with 2 cols

  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default problem with CSS styling on sub menu with 2 cols

    Guys (and gals Smile ) i have built a menu (using examples etc) i have it working around 99% correct. Its a dynamic menu. The problem i am having is i cant get the items on the drop menu (second level) to Push Up in-line. There is a big spacing between them and i have tried lots of different changes. It needs to be a two col sub menu but links closed up

    Please have a look at this fiddle and let me know where i am going wrong:
    http://jsfiddle.net/06pp180k/16/

    Thanks in advance

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Hiya,

    I'm not sure what you're describing - can you make a mock-up image in Photoshop to show exactly how you'd like it to look?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi Beverleyh
    Thanks for the reply

    When you hover over the main menu the second sub menu drops. If you take a look at the spacing (top and bottoM) of the links, there is a lot of white space. I want this to be narrower. Tried various changes, but not getting anywhere

    Thanks


    http://jsfiddle.net/06pp180k/16/
    Click image for larger version. 

Name:	Untitled-2.jpg 
Views:	132 
Size:	49.6 KB 
ID:	5541

    Click image for larger version. 

Name:	Untitled-3.jpg 
Views:	129 
Size:	34.6 KB 
ID:	5542
    Last edited by dalew32; 10-16-2014 at 11:42 PM.

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The height from here is cascading down on to all list items;
    Code:
    .drop_menu LI {
        float: left;
        background-color:#fff;
        height:40px;
        margin-top:-6px;
    }
    So you would need to override is on nested list items like this (put below the declaration above);
    Code:
    .drop_menu li li { height:25px }
    This is also causing problems for the drop-downs - they don't stay open when you move from the parent menu item;
    Code:
    .drop_menu UL {
        list-style-type: none;
        position: absolute;
        left: -999px;
        z-index: 1000;
        top: -999px;
        margin-top:19px;
        margin-left:14px;
        padding:0;
    }
    Change it to margin-top:14px so that the sub menu stays open.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. The Following User Says Thank You to Beverleyh For This Useful Post:

    dalew32 (10-18-2014)

  6. #5
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Your a star thanks Bev, i have posted this on stackoverload etc and no could answer.
    THanks so much

  7. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    No problem. Glad to help
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. ddSmoothMenu problem styling unlinked top level menu items
    By dgibb in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-02-2013, 08:01 PM
  2. Problem with styling header text in Bullet List Vertical Accordion Menu
    By fontanasteve in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-21-2010, 05:38 PM
  3. Resolved Ajax styling problem in Smooth Navigational Menu
    By Draxeiro in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-08-2010, 11:54 AM
  4. having problem in some text styling
    By aqeel in forum CSS
    Replies: 1
    Last Post: 09-25-2009, 10:15 PM
  5. two ID cols
    By james438 in forum MySQL and other databases
    Replies: 3
    Last Post: 09-05-2007, 05:27 AM

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
  •