>.format-pagination { > float: left; > position: relative; > left: 40%; >}>
>.format-pagination { > display: inline; >}>
><div class="text-center" ng-if="showDailyCodes" > ng-cloak ng-controller="dailyCodesCrudController"> > <ul uib-pagination total-items="366" > ng-model="selections.pageNumber" > items-per-page="31" > max-size="5" > rotate="false" > ng-change="selectMonthlyPage()" > previous-text="@Labels.previous" > next-text="@Labels.next"></ul> > </div> > <button class="btn btn-primary btn-primary-green pull-right" ng-if="showDailyCodes" > ng-click="saveDailyCodes(selections.dailyCodes)" > ng-disabled="form.$invalid || !form.editDailyCodesForm.$dirty"> > @Labels.save > </button> > <button class="btn btn-primary btn-primary-green pull-right" > ng-click="saveAssignno(assignnoSettings.currentAssignno)" > ng-disabled="form.$invalid || !form.editAssignnoGeneralForm.$dirty" > ng-if="showAssignno" ng-cloak> > @Labels.save > </button> > <data-cancel:button title="@Labels.unsavedChanges" > ng-if="!showPassPrefixes" > message="@Messages.unsavedChanges" > cancel="cancel()" > disable-action="disableAction" > dirty="form.$dirty"></data-cancel:button> >The following will get the Save/Cancel button centered, while you keep the navigation left:
<style> .Container { width: 400px; background-color: #ffff00; position: relative; } .Button { background-color: #eeeeee; } .Save { position: absolute; top: 0; text-align: center; width: 400px; } </style> <div class="Container"> <div class="Button"> 1 2 3 4 5 6 7 8 9 </div> <div class="Save"> Save </div> </div>I do not suggest to align text left or right when you have a centered text. This would simply defies the usage of a centered text and would confuse the layout.