Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Dropdown From Existing menu.
Old 05-08-2008, 01:07 PM Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Please have a look here

is there anyway to adjust this menu so the "services" tab has a couple of extra options drop down?

Also the tab would have to have a small down arrow next to it so im guessing I need to insert a background image somewhere to the css for that line?

I really didn't want to have to start the menu again from scratch if I could help it!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2008, 02:22 PM Re: Dropdown From Existing menu.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Normally the method of building a dropdown begins with nesting an unordered list inside of another unordered list. Since your menu is already a <ul>, you can build another <ul><li></li></ul> inside of the services <li>, right before or after the <a>Services</a>. Then, by targeting this list with rules like ul ul, or ul ul li, you can give it seperate styles without even needing to name it something differently. I recommend Son-of-Suckerfish style dropdowns.
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 05-08-2008 at 02:24 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-09-2008, 12:34 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
OK.....

Heres the HTML
Code:
<div id="modernbricksmenu2">
          <ul>
            <li id="current" style="margin-left: 1px"><a href="index.htm" title="About Us">About Us</a></li>
            <li><a href="business-consultancy-services.htm" title="Services">Services</a></li>
            <li><a href="customer-testimonials.htm" title="Testimonials">Testimonials</a></li>
            <li><a href="business-consultancy-case-studies.htm" title="Case Studies">Case Studies</a></li>
            <li><a href="contact.htm" title="Contact">Contact</a></li>
          </ul>
          <br />
          <br />
        </div>
CSS is
Code:
#modernbricksmenu2{
padding: 0;
width: 100%;
border-top: 4px solid #BC9B6A; /*Brown color theme*/ 
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}

#modernbricksmenu2 ul{
margin:0;
margin-left: 0px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}

#modernbricksmenu2 li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}

#modernbricksmenu2 a{
float: left;
display: block;
font: bold 11px Arial;
color: white;
text-decoration: none;
margin: 0 0px 0 0; /*Margin between each menu item*/
padding: 5px 10px;
background-color: black; /*Brown color theme*/ 
border-top: 1px gray;
}

#modernbricksmenu2 a:hover{
background-color: #BC9B6A; /*Brown color theme*/ 
color: white;
}

#modernbricksmenu2 #current a{ /*currently selected tab*/
background-color: #BC9B6A; /*Brown color theme*/ 
color: white;
border-color: #BC9B6A; /*Brown color theme*/ 
}
Can any one help with this?? I just need 3 extra links to appear when hovering over "services"
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-10-2008, 07:08 AM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Right, the <ul><li></li></ul> makes sense but when you say target with rules, you mean for the styling of the dropdown?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 06:18 AM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Hmmm... it just adds the extra links to the rows...?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 12:59 PM Re: Dropdown From Existing menu.
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
This might help
http://search.yahoo.com/search?ei=UT...%40&fr2=sp-top
joder is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:20 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thanks Joder,

I've got a step further but still running into problems.

Look Here

The extra links appear when hovering over "services" but at the top and not dropping down!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:26 PM Re: Dropdown From Existing menu.
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Your programming a hover menu in which the submenu is normally below or beside the parent. When your mouse moves outside the menu it disappears. To open a submenu in a different part of the page, it looks to me you'll have to try something else.
joder is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:44 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
No sorry I explained that wrong I dont want it to appear at the top but it is!

I want the list to appear below the "services" tab
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:49 PM Re: Dropdown From Existing menu.
Novice Talker

Posts: 8
Trades: 0
Cool stuff. Where did you learn all of this?
mapguy is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:49 PM Re: Dropdown From Existing menu.
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You have it set to display at the top left here
Code:
#modernbricksmenu2 li ul {
  display: none;
  position: absolute; 
  top: 1em;
  left: 0;
}
joder is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:53 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
ok, so what does it need to be set at?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 08:03 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
GRRRRRR! This is driving me nuts! I need to go live with the site in an hour!

Got the menu to NEARLY work, now they appear as a new row instead of straightdown! Link here
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 08:32 PM Re: Dropdown From Existing menu.
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
This is the one I use
http://www.dynamicdrive.com/dynamici...rome/index.htm

Don't know why you stick with position:absolute. Anyway, you might try the above one. For me it's not easy trying to sift through all the code trying to find a fix.
joder is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 09:14 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thanks Joder, I'm calling it a day now. I'll have a look in the morning.
If anyone comes up with a solution in the meantime that would be great.

Darren
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 05:09 PM Re: Dropdown From Existing menu.
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
@ Wayfarer07
@ Joder

Thanks for your help - TP added.

Final Menu is here

One last question...

On IE7 the last dropdown link seems a bit twitchy to click on.
There seems to be a gap between the 2 but the life of me I can't find out how to close it!

Cheers
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dropdown From Existing menu.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65263 seconds with 12 queries