Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

menu and submneu in html and css

Hi
i have a database application with php and mysql..
how i can create a   menu with submenu using html or css ..
0
asaidi
Asked:
asaidi
  • 2
1 Solution
 
glumlunCommented:
Hi, thats a broad question..

to get you started you need to choose a design for your menu, im guessing you mean a drop down menu? even if you dont you wil lend up building your menu using a sql query and then working with the results to output html.

the most common format for this would be within a nested list:

<ul>
<li>menu item 1</li>
<li>menu item 2</li>
<li>menu item 3
<ul>
<li>menu item 3.1</li>
<li>menu item 3.2</li>
<li>menu item 3.3</li>
</ul>
</li>
</ul>

this would then be styled with css

to achieve the abogve your pages/categories etc in the databse must have a parent child relationship. depending on how this is done wil depend on the query you need to bring back the correct data in the correct order to write a nested list.

does any of this help?

let me know
ta
glum
0
 
asaidiAuthor Commented:
the main page will be html and the submenu will call php scripts..
0
 
glumlunCommented:
so are you asking what your php scripts should do?
if so the answer is to ouptput html as shown above - in a nested list
sorry, but your being to vague

ta
glum.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now