Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

spliting menu items

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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?

thanks

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

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.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

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

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.