Skip to content

Instantly share code, notes, and snippets.

@h2kyaw
Created May 31, 2021 13:23
Show Gist options
  • Save h2kyaw/026101435ba1f9ec0304bc7b55ea28dc to your computer and use it in GitHub Desktop.
Save h2kyaw/026101435ba1f9ec0304bc7b55ea28dc to your computer and use it in GitHub Desktop.
Bootstrap: fontawesome in button of a tag.
Button icon is small.
<button class="btn btn-postbit me-1 dropdown-toggle" type="button" id="threadOptions" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-cog"></i></button>
I changed code and Problem soloved.
<button class="btn btn-postbit me-1 dropdown-toggle" type="button" id="threadOptions" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
But I got error that can't fix by above method.
<a rel="prev" href="{$page_url}" data-bs-toggle="tooltip" data-bs-placement="right" title="{$lang->previous} Page" class="pagination_previous flex-shrink-0 flex-grow-0">
<button type="button" class="btn btn-tertiary" aria-label="Previous Page"><i class="fas fa-long-arrow-alt-left"></i></button>
</a>
<a rel="prev" href="{$page_url}" data-bs-toggle="tooltip" data-bs-placement="right" title="{$lang->previous} Page" class="pagination_previous flex-shrink-0 flex-grow-0">
<button type="button" class="btn btn-tertiary" aria-label="Previous Page">
<i class="fas fa-long-arrow-alt-left"></i>
</button>
</a>
Don't Solve :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment