spliting menu items

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Oct 04, 2012 11:16 am

spliting menu items

Postby userazaz » Thu Oct 04, 2012 11:19 am

Hi PHP Gurus

I display many items in menu of my website.

I have code something like this

echo "<a href='index.php?m_id=".$row['id']."'>".$row['name']."</a>";

I try to add more items in the menu, but they go outside my table boundry. So how can i change the above code, or add more code so that i split menu items in 2 (or more) lines?



php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: spliting menu items

Postby seandisanti » Thu Oct 04, 2012 12:43 pm

by adding a <br /> where you want the break to be. If you paste the code for the menu, I or someone else may be able to offer more help.

Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests