mercredi 11 octobre 2017

How to view select option with checkbox on the top in bootstrap wizard

I am trying to put select option with a checkbox on the top of normal checkbox inside my bootstrap wizard theme.
Here is the image to show How it is look
I try to add position: absolute; z-index: 1 but it not working for me. How to show select option box on the top of a checkbox.
I also try to use link. When I use it in a different file it is working but combine with bootstrap wizard template it is not working.

Here is my code:

<style>
.dropdown {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
a {
    color: #fff;
}
.dropdown dd,
.dropdown dt {
    margin: 0px;
    padding: 0px;
}
.dropdown ul {
    margin: -1px 0 0 0;
}
.dropdown dd {
    position: relative;
}
.dropdown a,
.dropdown a: visited {
    color: #fff;
    text-decoration: none;
    outline: none;
    font-size: 14px;
}
.dropdown dt a {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.dropdown dt a span,
.multiSel span {
    cursor: pointer;
    display: inline-block;
    padding: 0 3px 2px 0;
    color: #9d9d9d;
}
.dropdown dd ul {
    background-color: #4F6877;
    border: 0;
    color: #fff;
    display: none;
    left: 0px;
    padding: 2px 15px 2px 5px;
    position: absolute;
    top: 2px;
    width: 280px;
    height: 100px;
    font: 13.3333px Arial;
    overflow: auto;
}
.dropdown span.value {
    display: none;
}
.dropdown dd ul li a {
    padding: 5px;
    display: block;
}
.dropdown dd ul li a: hover {
    background-color: #fff;
}
button {
    background-color: #6BBE92;
    width: 302px;
    border: 0;
    padding: 10px 0;
    margin: 5px 0;
    text-align: center;
    color: #fff;
    font-weight: bold;
}

<fieldset>
<h4>Tell us who you are:</h4>
<div class="form-group ">
</div>
<dl class="dropdown">

    <dt>
<a href="#">
  <span class="hida">Select</span>    
        <p class="multiSel"></p>  

</a>
</dt>

    <dd>
        <div class="mutliSelect btn-group">
            <ul style="z-index: 1; position: absolute;">
                <li>
                    <input type="checkbox" value="Apple" />Apple</li>
                <li>
                    <input type="checkbox" value="Blackberry" />Blackberry</li>
                <li>
                    <input type="checkbox" value="HTC" />HTC</li>
                <li>
                    <input type="checkbox" value="Sony Ericson" />Sony Ericson</li>
                <li>
                    <input type="checkbox" value="Motorola" />Motorola</li>
                <li>
                    <input type="checkbox" value="Nokia" />Nokia</li>
            </ul>
        </div>
    </dd>
</dl>
</div>

<div class="form-group">
    <div class="btn-group btn-group-horizontal" data-toggle="buttons">
        <label class="btn active">
            <input type="radio" name='gender1' checked><i class="fa fa-circle-o "></i><i class="fa fa-dot-circle-o "></i>  <span>  Male</span>
        </label>
        <label class="btn">
            <input type="radio" name='gender1'><i class="fa fa-circle-o "></i><i class="fa fa-dot-circle-o "></i><span> Female</span>
        </label>
    </div>
</div>




Aucun commentaire:

Enregistrer un commentaire