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 6015843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:53:42+00:00 2026-05-23T02:53:42+00:00

I have this site, please note that in a:hover put the source as bold.

  • 0

I have this site, please note that in a:hover put the source as bold.
The problem is that the font size decreases and eventually I read it also decreases.

There are two errors in the HTML you would like your help:

  1. The source should not decrease when ally is in bold.
    In the event a:hover can not change the size of the tag li.
  2. The tag li must have fixed size, and not size depending on content. How can I fix the size of the li?
  • 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-23T02:53:44+00:00Added an answer on May 23, 2026 at 2:53 am

    You can prevent the boxes from jumping by

    1. floating the lis
    2. adding a width to the lis
    3. adding left and right padding to the lis
    4. taking the hover off the a and adding it to the lis

    —

    ul#menu li {
     float:left; 
     width:120px; 
     background-color: #676767; 
     text-align:center; 
     padding:20px 20px; 
     margin:0 .25em;
    }
    
    ul#menu li a {
     color: #FFFFFF; 
     text-decoration: none;
    } 
    
    ul#menu li:hover {
     font-weight: bold; 
     background-color: #868686; 
     color: #FFFFFF;
    }
    

    http://jsfiddle.net/jasongennaro/5jJg3/10/

    Important:

    1. the bolder text still jumps, but the boxes do not
    2. you will only be able to click on the text ** however you can make the entire li clickable with js, if you like.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All of a sudden in this MVC site I have no views that can
I have a web site in asp.net that uses a master page. In this
I have a staging Rails site up that's running on MySQL 5.0.32-Debian. On this
the title pretty much explains it. Please note that this is a WebKit-specific issue
Before you show me duplicates, please note that I've searched through the site an
I have this classic ASP site which has been working fine until we updated
Since I have started using this site, I keep hearing about the Boost library.
I have a site with URLs like this: http://domain.co.uk/subdir/page.php I have redesigned the site
I have a site, from which you can download an HTML file. This HTML
How would I go about this? I have a mostly static site, which is

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.