Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-24-2012, 01:27 AM   PM User | #1
seminaljim
New Coder

 
Join Date: Oct 2011
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
seminaljim is an unknown quantity at this point
Angry CSS Menu Autocomplete Problem

Hi guys, this is really buggin me!

I have a menubar that uses css rules to show sub menu items when the mouse hovers over the menu items. Works fine, but on one of the menu items I have a login form, for the user and password, which also works fine. Problem is that when i click on the input box, the browsers autocomplete menu appears and when hovering over the autocomplete options, the sub menu dissapears.

Ive set up a page to show you...
www.snapse.net/

so if you enter detail on the login, and click 'login' (you get 404), and then go back and try again the autocomplete should show, but when you hover over the options the menu should dissapear.

Is there any way either to stop the autocomplete from showing, or css rules that will stop the menu dissapearing?

Thanks?

PS. This is my first attempt at a site
seminaljim is offline   Reply With Quote
Old 04-24-2012, 10:16 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,816
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
I don't see the behaviour in Chrome or Opera or IE8, so it looks like FF is the only affected browser. Have try adding the attribute autocomplete="off" to your form element - it looks like that fixes it using Firebug.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
seminaljim (04-24-2012)
Old 04-24-2012, 07:53 PM   PM User | #3
seminaljim
New Coder

 
Join Date: Oct 2011
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
seminaljim is an unknown quantity at this point
Thank you very much! I had tried this, but i put the autocomplete on the wrong element. I put it on the input tag rather than the form tag. So that fixed it in IE9 aswell. Cheers.

PS if anyone knows a way to allow the autocomplete and keep the div shown let me know...
seminaljim is offline   Reply With Quote
Reply

Bookmarks

Tags
css, menu

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:15 PM.


Advertisement
Log in to turn off these ads.