Created
March 23, 2016 18:35
-
-
Save Aslan11/460424ba1282300f01b2 to your computer and use it in GitHub Desktop.
How to break up long HTML tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We need to keep our line length to a maximum of 120 characters for HTML Styling. | |
The following serves as an example as to how to properly break up a long running tag. | |
BEFORE: | |
<a id="iob-account-details-active-ios-tab" ng-class="{'active': activeTab == 'active'}" ng-click="activeTab = 'active'">Active IOs <span id="iob-account-details-active-ios-badge" class="badge" ng-if="activeIOs.length > 0">{{activeIOs.length}}</span></a> | |
AFTER: | |
<a | |
id="iob-account-details-active-ios-tab" | |
ng-class="{'active': activeTab == 'active'}" | |
ng-click="activeTab = 'active'"> | |
Active IOs | |
<span | |
id="iob-account-details-active-ios-badge" | |
class="badge" | |
ng-if="activeIOs.length > 0"> | |
{{activeIOs.length}} | |
</span> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment