1

In the Table Fixed Header, I need the all text to go under the fixed header. This works for everything except the (Img) text in the first column. The Img goes over the fixed header. I believe it is probably in the CSS where I need to make the adjustment but cannot figure out how to adjust visibility....

The Img text produces a image toolip when you hover over it.

JSFIDDLE https://jsfiddle.net/rbla/1Ljuycbe/27/

/* IMAGE TOOLTIP */
.up:hover {
    cursor:pointer;
}

.tooltip2 {
    position: relative;
    display: inline-block;
    border-bottom: 3px dotted black; /* If you want dots under the hoverable text */
    text-decoration: none; 
    color: #00F;
}

img.cadre {
    border: 3px solid #D2D1D1; 
    border-radius: 4px; 
    width: 125px;
    height: 125px;
}

/* Tooltip text */
.tooltip2 .tooltiptext2 { 
    visibility: hidden;
    width: 130px;
    background-color: #fff;
    color: #fff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 6px;
    margin-left: 7px;


    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 0;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip2:hover .tooltiptext2 {
    visibility: visible;
    cursor:pointer;
}

/* Positioning - Right Tooltip */
.tooltip2 .tooltiptext2 { 
    top: -5px;
    left: 105%; 
}

/* Left Arrow */
.tooltip2 .tooltiptext2::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%; /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}
1
  • Can you post your JavaScript so we can see how it's interacting with your CSS? Commented Sep 14, 2018 at 16:56

1 Answer 1

2

You need to add z-index for the fixed table head. z-index property controls the vertical stacking order of elements that overlap.

Add this class to your CSS:

table.blue.fixed {
    z-index: 99;
}

jsFiddle

Sign up to request clarification or add additional context in comments.

5 Comments

This would be a better answer if you explained why.
@amflare Thanks
Of course - thanks - I was focused on the JQuery function instead of the CSS- works great
@bahman parsamanesh - what about when the overflow-x:auto is engaged - see here and adjust the browser and then scroll ... jsfiddle.net/rbla/1Ljuycbe/61
What is the problem?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.