Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:13:41+00:00 2026-05-28T08:13:41+00:00

I am creating a dropdown menu using a table. I am adding the jQueryUI-provided

  • 0

I am creating a dropdown menu using a table. I am adding the jQueryUI-provided “ui-state-highlight” class for row highlighting.

My issue is that right now, whenever an item is highlighted it makes the size of the menu change by a few pixels. I’ve tried to fix this issue using padding but it doesn’t seem to work. JSFiddle

To be more general, how do you style an element to maintain the same width/height when a child element is resized without explicitly setting the height and width?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:13:42+00:00Added an answer on May 28, 2026 at 8:13 am

    You are getting that shake effect is because of the border 1px. The border was added when you mouseenter and removed when mouseleave which is causing that effect.

    You can avoid it by a cheap trick,

     //Change white if the background color of your screen is different.
     tr { border: 1px solid white; } 
    

    Edit: You can use transparent color to avoid matching with what background color is.

    tr { border: 1px solid transparent; }
    

    DEMO here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Pure CSS menu from here: http://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/ It works fine, but I
I'm dynamically creating option elements for a drop down menu using Javascript and would
i am using a dropdown in php which asks for user_category before creating the
I am creating a simple drop down menu using css. <ul> <li id=base><a href=projects.php
When creating a standard Rails dropdown menu how do you set which item in
I am creating a dropdown menu on my website and have more or less
I am creating a dropdown menu based on suckerfish. The top level appears correctly,
I'm creating a form in a Rails 3 app that has a dropdown field.
I've got a page that has a dropdown menu, and upon selection, creates a
I'm using jquery to animate a dropdown menu. The children of a menu-item are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.