Skip to content

Bootstrap switch entire width property #419

@angel1st

Description

@angel1st

Hi There,
I see there is two width properties - data-handle-width and data-label-width. The issue I have is when I need to have entire switch adjusted with _width = 100%_ within the following code snippet:

<div class="row">
    <div class="col-lg-6 col-md-6 col-sm-6">
        <input class="btn btn-lg btn-block" type="checkbox" data-label-text="Login" name="guest">
    </div>
    <div class="col-lg-6 col-md-6 col-sm-6">
        <input type="checkbox" data-label-text="Set&nbsp;Name" name="name">
    </div>
</div>

If I put style="width: 100% to checkbox element it is overridden by bootstrap switch initialization code.
So how to solve it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions