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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:27:46+00:00 2026-05-28T05:27:46+00:00

I have a label control in tabel cell and with css on hover i

  • 0

I have a label control in tabel cell and with css on hover i have set the top border or red color.PRoblem is that the poistion of top border is showing distance bewtween border as like in my image attached with question

enter image description here

If You see then the red border is not like a square cornered and also showing a blank top space on top of it.I have much tried to remove this but i failed.Please anyone help me to make the border corners equal and also black space should like this second image.In short i want to make border like this image

enter image description here

My css code is bellow

#sddmCA div
{   position: absolute;
    visibility: hidden;
    margin: 0;
    padding: 0;
    background: #444444;
    border: 1px solid #959595;
    border-top-color:#464646;
    margin-top:1cm; 

and label control code is here

<ul id="sddmCA">
<asp:Label ID="CA"   runat="server" Font-Names="Arial" Font-Size="10pt" ForeColor="#CCCCCC" Style="margin-top:auto;" Height="100%" Text="Current Activities"         onmouseover="var b = ChangeColorCA();  hideshow(this);   this.style.cursor='pointer'; boldCA();    return b"                                     onmouseout="var b = mclosetime();   return b;" onclick="var a = mopen('m11'); this.style.background='#464646'; this.style.color='#FFFFFF'; this.style.borderBottomColor ='#464646'; this.style.borderRightColor ='#464646'; this.style.borderLeftColor ='#464646';  return a"  ></asp:Label>&nbsp;&nbsp;
  • 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-28T05:27:46+00:00Added an answer on May 28, 2026 at 5:27 am

    You could either set a black border on the non-hovered state that is the same width as the hovered state, or use a box shadow (depending on which browsers you choose to support)

    #sddmCA div /*removed non-question related code*/
    {   
        border: 1px solid #959595;
        border-top-color:#000000;
    }
    
    #sddmCA div:hover
    {   
        border: 1px solid #959595;
        border-top-color:#464646;
    }
    

    This will keep it in the same place as the border doesn’t change its size when hovered.

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

Sidebar

Related Questions

I have a composite control that adds a TextBox and a Label control to
I have a repeater control that contains an ItemTemplate containing a databound label and
I have this label control in my web page <asp:Label ID=Label1 runat=server Text=test></asp:Label> And
Say I have a label control in Winforms and I want to do some
I use ASP.NET and have a label control on my page, which I fill
I have an updateprogress in my aspx file, which has a label control in
i have a datalist control <ItemTemplate> <asp:Label ID=lblAddressID runat=server Text='<%# Bind(StudentName) %>'/> <asp:Label ID=lbl
I've got a treeview control, and have caught its after-label-edit event. I want to
When I have many controls on a Form (i.e. Label, Button etc) that do
I have a problem refreshing a DataGridView control after Insert or Update . The

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.