473,563 Members | 2,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1789
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
1409
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 version="1.0" encoding="iso8859-1"?> <?xml-stylesheet type="text/css" href="xml-style.css"?> <result> <date>2005-05-19
7
2711
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 menu displays well. If I then click on the second link, the first menu from the first link still displays. How do I get make the first menu...
0
1157
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 to be a collapsable menu object, like what you get in Visual Studio with the Solution Explorer when you toggle AutoHide. Is this possible? Thanks
3
1404
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
1391
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
1456
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 appreciated. Jerry
1
2469
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
1321
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 they click on the parent node. <?xml-stylesheet href='completeproject.css' type='text/css'?> <companies> <company id='PORTASILO'> <project...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.