Styling a Drop-Down Menu (And the hover effect)

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 28th, 2010, 10:12 pm

I have one little problem here. I'm trying to get a hover image on a menu to be dynamic. What I mean by this is that the left edge and the right edge would be a "shadow" while the rest would be one ( 1 ) solid color. The problem here though, is that the text would be of different size, so the image needs to be dynamic.

Attachments:
drop_down_menu.png

The drop down menu I'm trying to create.



Anyone have any idea how I can accomplish that? Preferably a CSS solution (I had one before, but I lost it :( [The drop down]).

Any ideas on how I can make that hover to be of dynamic size? Thank you.

My Current Progress

[EDIT] What I got there right now looks perfect in Firefox... looks a little different in IE (The right shadow upon hover)
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 28th, 2010, 10:12 pm

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 29th, 2010, 12:42 am

Alright, I got the dynamic links pretty much covered... there's still one bug in it though... MSIE messes up the right side of the hover a little bit. The yellow background covers half of the shadow.

Now what I'm missing is the drop down...
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 29th, 2010, 11:44 pm

I'm really falling flat on my face on this one. I got the Stu Nicholl's example, but I can't seem to style it correctly :banghead:

Please, I need some help here.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post October 6th, 2010, 10:41 am

Where is the bug happening? In MSIE6?
It looks fine in IE7 and IE8 so I'll assume you're having the issue with IE6.

This is because IE6 only understands the ":hover" pseudo-class when it is applied to an "<a>" tag. In your stylesheet you are applying it to an "<li>" tag.
Use your words like arrows to shoot toward your goal.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post October 6th, 2010, 11:47 am

Im having this bug in ie7. The shadow on the right side is covered a little by the "golden" background. Check the difference between firefox and ie7... The right shadow is smaller in ie7
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post October 6th, 2010, 11:54 am

Hmmm, not sure what you're talking about. They seem to be identical between browsers on my computer. Would you mind posting a screenshot? I may be looking in the wrong area.
Use your words like arrows to shoot toward your goal.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 134 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.