Solved

menu and submneu in html and css

Posted on 2008-10-10
3
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help with FaceBook login 2 43
Display Flex does not Wrap Items 2 46
What kind of script/language created this graph? 6 67
Undefined variable with $_POST in PHP 5 40
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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

752 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