Results 1 to 2 of 2
  1. #1
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Edmonton Canada
    Can anybody tell me how to split my php menus so I can have half on the left, half on the right, and the main page area in the center?

    I would like 50% of the menu on each side if possible please.

    I feel there must be some way to do this but for the life of me I cannot figure it out.

    Thanks in advance for any solutions

    Take care
    Gordon CEO of
    I got my parasiteware t-shirt
    <font color=red size="1">All parasites are scumbags and should be treated as such....</font><font color=blue size="1">STAMP EM OUT!!!</font>

  2. #2
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    get the size of the array you are using to populate your menu, divide by two.

    <pre class="ip-ubbcode-code-pre">
    //left side menu
    for (i=0; i&lt;(sizeof($menu_items)/2); i++){

    //right side menu
    for (i= ((sizeof($menu_items)/2)+1); i&lt;= sizeof($menu_items) ; i++){
    Alternatively, you could split your array in two and work each separately -- look at the array_slice() docs

    "The greatest good you can do for another is not just to share your riches, but to reveal to him his own." – Benjamin Disraeli
    Ford Fox-body Owners Club --

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Category Menus
    By jackson992 in forum GoldenCAN
    Replies: 2
    Last Post: February 15th, 2007, 04:24 PM
  2. Javascript Menus
    By darkstar7 in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: February 4th, 2005, 05:06 PM
  3. Need help on Drop down Menus
    By RGStephens in forum Virtual Family and Off-Topic
    Replies: 10
    Last Post: January 6th, 2003, 07:56 AM
  4. Drop down menus and frames
    By SSanf in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: February 15th, 2002, 12:25 PM

Posting Permissions

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