Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Nov 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    drop down menu, change click to hover

    hi,

    was hoping someone could help me changing the action on my dropdown menu. Currently the products link actions the drop down menu by 'click' but i would like it to work using 'hover' action. my website address is smarter.am

    help would be much appreciated

    thanks

  2. #2
    Senior Coder benanamen's Avatar
    Join Date
    Oct 2015
    Posts
    1,377
    Thanks
    3
    Thanked 137 Times in 132 Posts
    It took me about 3 milliseconds to come up with this. Google must be down again.

    https://www.w3schools.com/css/css_dropdowns.asp

    https://www.w3schools.com/howto/howto_css_dropdown.asp
    To save time, lets just assume I am almost never wrong.

    The XY Problem
    The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

    "This text has been encoded with ROT26. If you can read this you must have found a backdoor. Congratulations!"

  3. #3
    New to the CF scene
    Join Date
    Nov 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's very sweet of you but not what I want. I found that too in 2! I just want to change the code that's already there not revamp the whole thing plus the drop down has images. Anyone can help just change the current code from click to hover for the drop down menu that would be great!

  4. #4
    New to the CF scene
    Join Date
    Dec 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, I'm here to learn too. In the example (https://www.w3schools.com/howto/tryi...ropdown_navbar), the menu words are aligned left starting from 'Home'. Where do you place the 'text-align: center' statement in the coding to shift all the words towards the center of the navigation bar? Somehow it isn't as simple as it seems to me. Thanks for your advice.

  5. #5
    Senior Coder deathshadow's Avatar
    Join Date
    Feb 2016
    Location
    Keene, NH
    Posts
    2,458
    Thanks
    2
    Thanked 359 Times in 349 Posts
    Quote Originally Posted by jjmatos View Post
    I just want to change the code that's already there not revamp the whole thing plus the drop down has images.
    In other words, you don't ACTUALLY want to do it? Sorry, that's just what it sounds like.

    Given the bloated train wreck DISASTER of how NOT to build a website you have there, my advice would be to pitch the entire mess in the trash and start over, there is NOTHING in that codebase I would be trying to salvage...

    ... and I usually rag on turdpress codebases pretty hard, but this Betty takes the cake with the MASSIVE amount of static scripting and style in the markup that has zero blasted business in the HTML, the complete lack of anything remotely resembling semantics, and overall reeking of having been built by people unqualified to use HTML or CSS.

    Hence it wasting 116k of markup on delivering 1.6k of plaintext and not even a half dozen content images -- EASILY TEN TO TWELVE TIMES the code that should have been used there.

    You've got a lot bigger problems than swapping the behavior of that dropdown; to the point it's such a bloated convoluted mess I don't know many competent programmers that would touch it.
    I would rather have questions that can't be answered, than answers that can't be questioned.
    http://www.cutcodedown.com

  6. #6
    New to the CF scene
    Join Date
    Nov 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the feedback

    yeah, i know its a mess. I didnt design this only completing whats been left on my lap.

    so if anyone can help be much appreciated


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •