all,
In bootstrap3, I am using a button to collapse a div, I have an image and text and alternate between:
+ More
- Less
however the image is misaligned to the text. Is there any way to allign image and test in a content: button?
HTML
<button class="btn btn-link collapsed"
data-toggle="collapse"
data-target="#collapseMoreDetails">
</button>
CSS
button.btn.collapsed:before
{
content: url('plusImage.svg') " More" ;
}
button.btn:before {
content: url('minusImage.svg' ) " Less" ;
2
Answers
i figure out I can use bootstrap and everything works perfectly aligned
html
css
It is possible if you separate the image and text into two different pseudo elements.