Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
109
rated 0 times [  114] [ 5]  / answers: 1 / hits: 22186  / 10 Years ago, mon, march 24, 2014, 12:00:00

I have a modal window which consists this div:



<div class=input-group>
<div class=input-group-addon title=Insert here your domain account name data-toggle=tooltip data-placement=left id=Account>
@Html.Label(Domain account name, new { @class = control-label })
</div>
<div class=a>
@Html.TextBoxFor(model => model.Login, new { @class = form-control })
@Html.ValidationMessageFor(model => model.Login)
</div>
</div>


As you can see, there is a tooltip on the label.



It's initalized with this code:



$('#Account').tooltip({ container: 'body' });


The code is working, but the tooltip is showing behind the modal. I tried setting the z-index of the tooltip like this:



.tooltip {
z-index: 1151,!important;
}


or



 #Account {
z-index: 1151,!important;
}


but none of them worked.



Can you suggest how should I set up CSS to make this tooltip show on top of the modal?


More From » css

 Answers
2

Try without comma before !important:



.tooltip{
z-index: 1151 !important;
}

[#71820] Saturday, March 22, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nadineannabellet

Total Points: 464
Total Questions: 94
Total Answers: 97

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
;