Solved

menu and submneu in html and css

Posted on 2008-10-10
3
219 Views
Last Modified: 2011-09-20
Hi
i have a database application with php and mysql..
how i can create a   menu with submenu using html or css ..
0
Comment
Question by:asaidi
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
glumlun earned 500 total points
ID: 22685570
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
 

Author Comment

by:asaidi
ID: 22685818
the main page will be html and the submenu will call php scripts..
0
 
LVL 11

Expert Comment

by:glumlun
ID: 22685901
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing alignment and creating border 6 29
Javascript_Set_dropdown_value 7 32
Scroll 5 news at a time. 4 27
Under active page on navigation bar 8 14
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question