Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-May-07, 08:50 PM   #1 (permalink)
Apex Techie II
largo's Avatar
Default Help with css dropdown menu

i have a CSS drop down menu that needs to be centered on a web page as well as work with IE 6 & 7. So far i have this code which works well in Firefox but it is left justified and it causes my site not to function in IE. any assistance would be greatly appreciated. www.kendallhurleygallery.com/menucode.txt *edit*sorry about the link but the code tags won't work *edit* here is the CSS file www.kendallhurleygallery.com/KHG.css

Last edited by largo; 11-May-07 at 05:04 AM.
largo is offline     Reply With Quote
Sponsored Links
Old 10-May-07, 09:09 PM   #2 (permalink)
Apex Elite Tech
Hak Foo's Avatar
Default Re: Help with css dropdown menu

Quote:
Originally Posted by largo
i have a CSS drop down menu that needs to be centered on a web page as well as work with IE 6 & 7. So far i have this code which works well in Firefox but it is left justified and it causes my site not to function in IE. any assistance would be greatly appreciated. www.kendallhurleygallery.com/menucode.txt *edit*sorry about the link but the code tags won't work

Here's an approach somewhat inspired by the menu scripts that dynamicdrive.com offers-- if you don't want to just use them. -Make the top "menu titles" as links with onmouseover actions. -Make the menus themselves divs set to "display:none", "position:absolute", and the "top", "left", "right", and "margin-left"/"margin-right" properties set to position them how you want. -On the "onmouseover" event, you set a flag that says "leave menu up" and display the menu by setting its style as "display: block;" -If you enter the menu itself, you set the flag again -If you leave the menu or the menu button, you clear the flag and set a timeout of like 10ms. -When the timeout's called, if the flag is set, do nothing, otherwhise, hide the menu because we're no longer holding the mouse over it. Nested menus are a logical extension of this, but would require you to hide the parent menu when you hide the child menu, and to set the "leave the menu up" flag when you enter a child menu.
Hak Foo is offline     Reply With Quote
Old 10-May-07, 09:22 PM   #3 (permalink)
Apex Master Tech
Morion's Avatar
Default Re: Help with css dropdown menu

Quote:
Originally Posted by largo
i have a CSS drop down menu that needs to be centered on a web page as well as work with IE 6 & 7. So far i have this code which works well in Firefox but it is left justified and it causes my site not to function in IE. any assistance would be greatly appreciated. www.kendallhurleygallery.com/menucode.txt *edit*sorry about the link but the code tags won't work

Can you post your css file? Its hard to understand how the menu will work without it. Can you explain how it works and how it's structured so we can help you better? Also, what are all the conditional comments for?

I've done CSS menus before. If you want to use my code just ask.

You'll find that CSS menus are a pain in IE since IE only supports the hover event on tags. I got around this by writing a behavior file.
Morion is offline     Reply With Quote
Old 10-May-07, 11:39 PM   #4 (permalink)
Apex Tech Demi-God
TiZakit's Avatar
Default Re: Help with css dropdown menu

Quote:
Originally Posted by Morion
Can you post your css file? Its hard to understand how the menu will work without it. Can you explain how it works and how it's structured so we can help you better? Also, what are all the conditional comments for?

I've done CSS menus before. If you want to use my code just ask.

You'll find that CSS menus are a pain in IE since IE only supports the hover event on tags. I got around this by writing a behavior file.

This is his CSS...

http://www.kendallhurleygallery.com/KHG.css
TiZakit is offline     Reply With Quote
Old 11-May-07, 05:08 AM   #5 (permalink)
Apex Techie II
largo's Avatar
Default Re: Help with css dropdown menu

the conditional comments are supposed to allow it to work in IE 6 and 7 however, testing them shows that they appear to do nothing

*edit* I barley understand the basics of CSS so a little more detail would be helpful

Last edited by largo; 12-May-07 at 09:16 PM.
largo is offline     Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the PC's setup menu (or BIOS menu) to show up. CubanConnectionZ Motherboards / CPUs 0 18-May-06 10:45 PM
What does your Start Menu say about you? GlitterKill Anything Goes 53 19-April-06 02:55 PM
Is there an OSX skin/menu for XP? GLO Anything Goes 33 01-January-06 04:17 PM
XP start Menu Dimazz Other PC Problem / Help 4 11-May-03 08:31 PM


All times are GMT -5. The time now is 02:25 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.21901 seconds with 9 queries