.infopanel{ background:#343a40; color:#fff; min-height:2.5rem; vertical-align:middle; border-bottom: 1px solid #454d55; padding: 15px; } .backlink{ text-align: right; float:right; } #navline1, #navline2{ text-align:center; padding:10px; } #buttons form{ display:inline; } .editbutton, .deletebutton{ display:inline-block; } @media only screen and (orientation: portrait){ .col-md-12{ flex:0 0 66.6666666667%;max-width:66.6666666667% } .hideable{ display:none; visibility:hidden; } }