473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Collapsable menus

tim

I am creating a menu tree using a unordered lists using a script
called 'simplemenu' that i have come accross and just have a couple of
problems with it.

I was originally using a javascript based script named 'foldoutmenu'.
I was informed that it wasn't the best script and i have changed to
use a more simple css based script.

1I have three main problems, firstly, I would like each menu to
collapse when the next one is opened alike my original 'foldoutmenu'.

2I would also like to find a way of altering the spacing/ padding to
look like the first attempt. can i control this using css?

3>I would also like to control the width of the text in the menus. I
would like it to be set to 400px. Is this something that i can change
in the css?

The 'simplemenu' that i am using now can be seen at; http://
www.geocities.com/timdenton3000/

The first 'foldoutmenu' that i have now ditched can be seen at: http://
www.geocities.com/timdenton3000/old/index.htm

Any help/advice on either of these problems would be much appreciated.

Many thanks

Tim

Feb 10 '07 #1
2 1784
tim wrote:
I am creating a menu tree using a unordered lists using a script
called 'simplemenu' that i have come accross and just have a couple of
problems with it.

I was originally using a javascript based script named 'foldoutmenu'.
I was informed that it wasn't the best script and i have changed to
use a more simple css based script.

1I have three main problems, firstly, I would like each menu to
collapse when the next one is opened alike my original 'foldoutmenu'.

2I would also like to find a way of altering the spacing/ padding to
look like the first attempt. can i control this using css?

3>I would also like to control the width of the text in the menus. I
would like it to be set to 400px. Is this something that i can change
in the css?

The 'simplemenu' that i am using now can be seen at; http://
www.geocities.com/timdenton3000/

The first 'foldoutmenu' that i have now ditched can be seen at: http://
www.geocities.com/timdenton3000/old/index.htm

Any help/advice on either of these problems would be much appreciated.

Many thanks

Tim
I think what you're asking for is too much like "writing the application
for you" to get much help from the newsgroup. But if you would like to
see just what css can do, you could do much, much, much worse than
checking out A List Apart's menu tutorials. (
http://search.atomz.com/search/?sp-q...p=All&sp-k=All
) They pretty much go from full blown CSS menus that degrade gracefully
all the way back to the first browsers ever made.

But to answer 2 & 3, yes CSS can let you alter spacing/padding and
width. style="width: 400px; padding: 5px;" will set the width, of the
element to 400px and create an inner padding layer 5pixels deep.

--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Feb 12 '07 #2
tim
Hi pcx99

Thanks for the reply, granted, i am perhaps asking a bit much.

I have previously had a good look through alistapart, and there are
some really nice examples there, only im not sure that any of them fit
in with what im trying to do. And unfortunately i dont have the
knowledge to manipulate the codes to my requirments.

Thanks for the help with the css spacing, i'll continue to work out
the collapsability of the menus.

Many thanks

Tim

Feb 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: news | last post by:
Is there a way to write an XML doc so that you can still format the text, bold and whatnot, and still have it display in a collapsable tree format? Here's what I'm using as a test: <?xml...
7
by: Marci | last post by:
I found this script for cascading menus, however, I cannot reach the author to solve the bug I am having when I add a second menu to it. My problem is this: If I click on the first link, the...
0
by: Steve | last post by:
Visual Studio 2003 .NET / C# My current application has a Treeview control down the left hand edge permanently, and this object acts as my main menu controller. What I want though is for this...
3
by: The Bear | last post by:
Is there a way to create a collapsable datagrid. Where multiple areas of the grid can be expanded or collapsed? Using C# and Windows Forms
1
by: Brian Henry | last post by:
How do you make a collapsable list in html? I remember doing it in the past but cant remember how exactly to.. thanks!
7
by: Rlrcstr | last post by:
How would one implement collapsable paragraphs of text in an HTML page? I want the sections of the document to be expandable for full text or collapsed into just the section heading. Any help is...
1
by: t f | last post by:
Hi Is there a collapsable panel available in c#, e.g. like the toolbox / solution explorer etc... Or would one have to develop one? thanks t f
4
by: cleary1981 | last post by:
Hi, I am using php to generate an xml file with information from my database. What I want to do is style xml into an expandable collapsable table where the user will only see the childnodes if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.