Solved

menu and submneu in html and css

Posted on 2008-10-10
3
222 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

630 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