How to float elements left or right of a horizontally centered element?
问题 For the pagination I'd like to use a horizontal alignment of elements looking like this: |<first page> | <previous page> | page X of N | <next page> | <last page>| The element page X of N should always stay in the middle of the whole line, even if one of the other elements is missing . E.g. |<first page> | <previous page> | page N of N | The floating elements should always be attached directly to the element in the centre. My approach looks like this (last row of a search results table): <tr