Results 1 to 2 of 2

Thread: CSS for menu layout

  1. #1
    Join Date
    Jun 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS for menu layout

    Im trying to apply css to html generated by php. I dont know much about php so im trying to achieve as much as I can with css.

    You can see the menu style Im trying to achieve here;
    http://www.jameschetwood.com/menu/menuiwant.jpg

    At the moment the lists are generated like so;

    When on home page;
    MenuLevel1 MenuLevel1 MenuLevel1

    When you click on the first of the top menu links its opens like so;
    MenuLevel1, MenuLevel2, MenuLevel2, MenuLevel2, MenuLevel2, MenuLevel1, MenuLevel1,

    How can I make my menu so the MenuLevel1 elements are on the top, and the MenuLevel2 elements open below?

    What I want;
    MenuLevel1, MenuLevel1, MenuLevel1,
    MenuLevel2, MenuLevel2, MenuLevel2, MenuLevel2, MenuLevel2, MenuLevel2,

    The php already gives different a class= to the different tiers.
    thanks
    james

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    This is really a question of what your PHP output looks like and how you're creating it. But in general, you should attempt to get your output to look as close the markup of this CSS menu as possible.

    If I'm misunderstanding you here, please let me know. I'm assuming by MenuLevel2, you mean a submenu but that could be the wrong assumption. If I am wrong, please explain how MenuLevel1 and MenuLevel2 relate to the image you posted.

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
  •