The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> popout menu
minidiapolis
post Apr 14 2008, 08:34 PM
Post #1


Serious Coder
*****

Group: Members
Posts: 437
Joined: 3-September 06
Member No.: 57



I'm creating a popout menu for the very first time. Using this line as an example

sitems[0]=["<big><font face='Arial'>Site Menu</font></big>", ""]

is the first step to replace sitems with one of my menu options?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Frederiek
post Apr 28 2008, 03:04 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I think you got confused by the diffrent examples and mixed things up. That's partly my fault (sorry), but also caused by the fact that you don't seem to know what you are doing (no offence).

This is what your HTML for the menu should look like:
CODE
<ul id="nav">
    <li><a href="#">About Us </a>
        <ul>
            <li><a href="#">Our Beliefs</a></li>
            <li><a href="#">Our Doctrine</a></li>
            <li><a href="#">Mission Statement</a></li>
        </ul>
    </li>
    <li><a href="#">Programs</a>
        <ul>
            <li><a href="#">Z-street</a></li>
            <li><a href="#">FYI (Fountain Youth Inc)</a></li>
            <li><a href="#">Small Groups</a></li>
        </ul>
    </li>
    <li><a href="#">Staff </a>
        <ul>
            <li><a href="#">Ministry Team</a></li>
            <li><a href="#">Leadership Team<a></li>
        </ul>
    </li>
</ul>

and this your CSS:
CODE
body {
    font-family: Arial, Helvetica, sans-serif;
}
    
#nav, #nav ul { /* all lists */
    padding: 0;
    margin: 0;
    list-style: none;
    float : left;
    width : 11em;
}
    
#nav li { /* all list items */
    position : relative;
    float : left;
    line-height : 1.25em;
    margin-bottom : -1px;
    width: 11em;
}
    
#nav li ul { /* second-level lists */
    position : absolute;
    left: -999em;
    margin-left : 11.05em;
    margin-top : -1.35em;
}
    
#nav li a {
    width: 11em;
    w\idth : 10em;
    display : block;
    color : black;
    font-weight : bold;
    text-decoration : none;
    background-color : white;
    border : 1px solid black;
    padding : 0 0.5em;
}
    
    #nav li a:hover {
    color : white;
    background-color : black;
}
    
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
    left: auto;
}
    
#content {
    margin-left : 12em;
}

Put that in a test page and try it. I'm sure that's what you're after.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
minidiapolis   popout menu   Apr 14 2008, 08:34 PM
pandy   That line means nothing out of context, but I...   Apr 14 2008, 08:49 PM
minidiapolis   I'm sorry, I'm trying to follow the sample...   Apr 14 2008, 09:05 PM
pandy   OK, now I understand. Yes, you replace their link ...   Apr 14 2008, 10:23 PM
minidiapolis   Can you explain "don't forgot to provide ...   Apr 14 2008, 10:40 PM
pandy   Can you explain "don't forgot to provide...   Apr 14 2008, 10:47 PM
Darin McGrew   This may be a mis-communication. You don't nee...   Apr 15 2008, 12:40 AM
minidiapolis   I'm really confused. . . Darin, I could have ...   Apr 15 2008, 09:48 AM
Darin McGrew   I think you're putting the cart before the hor...   Apr 15 2008, 10:33 AM
minidiapolis   I want a light-weight "About Us" page wi...   Apr 15 2008, 11:14 AM
Darin McGrew   Okay, then create multiple documents, with navigat...   Apr 15 2008, 02:46 PM
minidiapolis   Ok, thanks so much for your help. I really apprec...   Apr 15 2008, 02:56 PM
minidiapolis   For some reason the popout menu isn't displayi...   Apr 15 2008, 09:26 PM
pandy   The same reason as almost all your problems, the o...   Apr 15 2008, 09:59 PM
Darin McGrew   For some reason the popout menu isn't displayi...   Apr 16 2008, 01:11 AM
minidiapolis   It's what the client wants   Apr 15 2008, 10:02 PM
minidiapolis   I deleted the absolute positioning but the menu go...   Apr 15 2008, 10:07 PM
minidiapolis   Can you help me a little more? I know nothing abo...   Apr 16 2008, 07:49 AM
Darin McGrew   The Pure CSS Menus example on Eric Meyer's css...   Apr 16 2008, 12:13 PM
pandy   MSIE doesn't support the CSS required for Eri...   Apr 16 2008, 01:04 PM
minidiapolis   Where in the html code would I put this <ul id...   Apr 16 2008, 01:55 PM
pandy   I don't know. What is it?   Apr 16 2008, 02:18 PM
minidiapolis   it's from the webpage you gave me http://www.h...   Apr 16 2008, 02:23 PM
Darin McGrew   Where do you want the menu?   Apr 16 2008, 02:24 PM
minidiapolis   it's from the webpage you gave me http://www.h...   Apr 16 2008, 02:24 PM
Darin McGrew   Okay, let's try this again. Where on your page...   Apr 16 2008, 02:45 PM
pandy   In addition to that I think you should start with ...   Apr 16 2008, 02:53 PM
minidiapolis   I'm embarrassed to ask this but how do you dis...   Apr 16 2008, 03:03 PM
pandy   Depends on the browser. Somewhere in options. For...   Apr 16 2008, 03:25 PM
Darin McGrew   There is a web developer toolbar plugin for Firefo...   Apr 16 2008, 03:55 PM
pandy   With IE you can use the Web Accessibility Toolbar ...   Apr 16 2008, 04:48 PM
pandy   Oh, we forgot that for IE there's also the han...   Apr 16 2008, 04:50 PM
minidiapolis   Ok, I have been looking at the webpage with and wi...   Apr 16 2008, 07:24 PM
minidiapolis   I *might* be getting it. . . sorry about all the ...   Apr 18 2008, 02:25 PM
Darin McGrew   That's JavaScript, not CSS. It could go in an ...   Apr 18 2008, 02:46 PM
minidiapolis   Here's a stupid question but how do you create...   Apr 18 2008, 02:52 PM
Darin McGrew   JavaScript files are just text files, like HTML an...   Apr 18 2008, 03:19 PM
minidiapolis   So, sfHover = function() { var sfEls = document.ge...   Apr 18 2008, 03:37 PM
Darin McGrew   By convention, JavaScript files are usually named ...   Apr 18 2008, 04:00 PM
minidiapolis   do I need to link it to the html page   Apr 18 2008, 08:15 PM
pandy   Yes. Otherwise the browser won't know it's...   Apr 18 2008, 08:19 PM
minidiapolis   What am I doing wrong now on http://www.fountainch...   Apr 18 2008, 08:43 PM
Darin McGrew   It looks like you aren't setting a background ...   Apr 18 2008, 08:51 PM
minidiapolis   background for the sub-menu?   Apr 18 2008, 08:58 PM
minidiapolis   Am I on the right track though?   Apr 18 2008, 09:00 PM
minidiapolis   What's wrong with lines 28, 56, 66, and 91?   Apr 18 2008, 09:28 PM
Darin McGrew   It looks to me like there is an extra <ul> o...   Apr 19 2008, 01:26 AM
Frederiek   Yes, see http://htmlhelp.com/reference/html40/spec...   Apr 19 2008, 03:51 AM
minidiapolis   What do I need to do to get the javascript to work...   Apr 19 2008, 10:56 AM
Frederiek   Go see http://www.htmldog.com/articles/suckerfish....   Apr 19 2008, 04:12 PM
minidiapolis   I copied the code from http://www.htmldog.com/arti...   Apr 19 2008, 09:02 PM
pandy   I copied the code from [url=http://www.htmldog.co...   Apr 19 2008, 09:51 PM
Darin McGrew   You've just pasted CSS into the HTML document....   Apr 19 2008, 10:21 PM
pandy   You've just pasted CSS into the HTML document...   Apr 19 2008, 10:25 PM
Darin McGrew   Good catch. I missed that. :blink:   Apr 19 2008, 10:29 PM
Frederiek   Or even an opening STYLE tag. The entire <styl...   Apr 20 2008, 03:56 AM
pandy   Yeah, had there been a start tag. :P   Apr 20 2008, 04:02 AM
minidiapolis   Well, I might be getting closer. . . . maybe. . ....   Apr 20 2008, 03:44 PM
pandy   Did you ever do what I suggested and tried it out ...   Apr 20 2008, 10:52 PM
minidiapolis   I thought you said to try it on the menu on a sepa...   Apr 21 2008, 07:22 AM
pandy   :blink: Yes. Did you?   Apr 21 2008, 08:06 AM
minidiapolis   yes at www.fountainchurch.org/aboutUs.html. The p...   Apr 21 2008, 01:12 PM
pandy   yes at www.fountainchurch.org/aboutUs.html. The ...   Apr 22 2008, 03:31 AM
minidiapolis   I'm trying to convert the sample code to the c...   Apr 21 2008, 09:19 PM
minidiapolis   the AP menu? Also, I'm confused, what do you ...   Apr 22 2008, 11:33 AM
Frederiek   Clearly, Pandy means just the plain menu, nothing ...   Apr 22 2008, 02:32 PM
minidiapolis   look on www.fountainchurch.org/menu.html. it stil...   Apr 22 2008, 07:20 PM
minidiapolis   Why would the website work correctly in opera but ...   Apr 23 2008, 06:17 PM
Darin McGrew   Why would the website work correctly in opera but ...   Apr 23 2008, 06:31 PM
minidiapolis   Would it be the disappearing background list bug? ...   Apr 23 2008, 08:33 PM
minidiapolis   On www.fountainchurch. org/test.html how can the m...   Apr 23 2008, 10:35 PM
Frederiek   Your fountain.css interferes with the inline CSS. ...   Apr 24 2008, 02:54 AM
minidiapolis   Comment out external CSS? Your fountain.css int...   Apr 24 2008, 06:17 PM
minidiapolis   On http://www.fountainchurch.org/test.html if you ...   Apr 24 2008, 09:25 PM
Frederiek   Yes, put comments around the <link> tag to y...   Apr 25 2008, 02:49 AM
minidiapolis   How would I make the menu vertical? Thanks so muc...   Apr 25 2008, 07:15 PM
Frederiek   By using the CSS from the vertical exemple on the ...   Apr 26 2008, 02:52 AM
minidiapolis   I don't get it, I followed the example on http...   Apr 26 2008, 10:12 PM
pandy   But your CSS is nothing like that at maxdesign. Am...   Apr 26 2008, 10:29 PM
minidiapolis   I fixed that problem but now if the mouse is hover...   Apr 27 2008, 05:50 PM
Darin McGrew   AFAICS, the CSS is doing just what you told it to ...   Apr 27 2008, 07:04 PM
Frederiek   I think you got confused by the diffrent examples ...   Apr 28 2008, 03:04 PM
Frederiek   I forgot to say that I based that on your menu1.ht...   Apr 28 2008, 04:08 PM
minidiapolis   It's getting there. I'm still having prob...   Apr 28 2008, 10:02 PM
Darin McGrew   Do you mean that you see both the "About Us...   Apr 28 2008, 10:26 PM
Frederiek   I found that the markup didn't validate. So I ...   Apr 29 2008, 07:33 AM
minidiapolis   Why isn't the border color changing to white?   Apr 29 2008, 02:22 PM
Darin McGrew   It looks like a result of your CSS errors.   Apr 29 2008, 02:47 PM
minidiapolis   Why isn't the picture showing up as the bullet...   Apr 29 2008, 07:06 PM
Darin McGrew   Where will the image be displayed? You've set ...   Apr 29 2008, 07:57 PM
minidiapolis   I have played around with the margin/padding, stil...   Apr 29 2008, 08:51 PM
pandy   The images are there in FF. They'll be there i...   Apr 29 2008, 09:14 PM
minidiapolis   So what do I do for IE?   Apr 29 2008, 09:31 PM
pandy   Dunno if there is a way. Use a background image in...   Apr 29 2008, 10:35 PM
Frederiek   AFAICS, it's already a background image. Prob...   Apr 30 2008, 03:48 AM
pandy   Am I looking at the wrong page? I looked at the la...   Apr 30 2008, 09:01 AM
Frederiek   Ah, yes, it's the correct page and you're ...   Apr 30 2008, 10:33 AM
pandy   No. The image isn't used as a background, reme...   Apr 30 2008, 11:20 AM
pandy   For you. http://web.telia.com/~u18121512/flowers.g...   Apr 30 2008, 11:36 AM
Frederiek   Do you mean to say that most of maxdesign's Li...   Apr 30 2008, 12:17 PM
2 Pages V  1 2 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 10:39 AM